Referencing a Downloaded File
Referencing a Downloaded File
- Subject: Referencing a Downloaded File
- From: Diana Doyle <email@hidden>
- Date: Sat, 7 Jan 2006 12:50:57 -0600
Hi, I'm new to AppleScript and to the forum.
I need to move downloaded files (which get placed on the desktop) to a
folder. But I can seem to reference the downloaded file for the move
command. (I can do a work around if I know the file's name in advance,
but that's not always possible.)
What is wrong with the syntax or variable type assignment in the
following?
on GetPicture(theSite, thePicture) --subroutine to retrieve the image
tell application "Finder"
move the file returned of (open location "http://" & theSite &
thePicture & ".jpg") to the folder "New Images" of the desktop
delay 240
end tell
end GetPicture
I also tried something along the lines of:
set newImage to (open location ""http://" & theSite & thePicture &
".jpg")
delay 240
move newImage to the folder "New Images" of the desktop
Diana
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden