View Single Post
FallenAsh

 
Member Since: Jun 24, 2012
Posts: 2
FallenAsh is on a distinguished road

FallenAsh is offline
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'"
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'"

Could you help?
QUOTE Thanks