Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Applescript Curl and Variable Help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="FallenAsh" data-source="post: 1484043" data-attributes="member: 258736"><p>Hello</p><p></p><p>I'm mildly experienced with Applescript, but curl and shell confuse me immensely.</p><p></p><p>I have this snippit of code that just refuses to work.</p><p></p><p>Now this on it's own works with the script perfectly:</p><p>[CODE]do shell script "curl -f '" & urlfinish & "' -o '/Users/Luke/Desktop/" & USER & ".png'"[/CODE]</p><p></p><p>However, when I try to use a dialog box and variable it refuses to work, and interprets the variable as text producing a error:</p><p></p><p>[CODE]tell application "Finder" to set destination to folder (choose folder with prompt "Pick the folder to save image to:")</p><p>do shell script "curl -f '" & urlfinish & "' -o 'destination" & USER & ".png'"</p><p>[/CODE]</p><p></p><p></p><p>Could you help?</p></blockquote><p></p>
[QUOTE="FallenAsh, post: 1484043, member: 258736"] Hello I'm mildly experienced with Applescript, but curl and shell confuse me immensely. I have this snippit of code that just refuses to work. Now this on it's own works with the script perfectly: [CODE]do shell script "curl -f '" & urlfinish & "' -o '/Users/Luke/Desktop/" & USER & ".png'"[/CODE] However, when I try to use a dialog box and variable it refuses to work, and interprets the variable as text producing a error: [CODE]tell application "Finder" to set destination to folder (choose folder with prompt "Pick the folder to save image to:") do shell script "curl -f '" & urlfinish & "' -o 'destination" & USER & ".png'" [/CODE] Could you help? [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Applescript Curl and Variable Help
Top