• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Referencing a Downloaded File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: AppleScript Error with FM8A
  • Next by Date: Re: How do I delete the 1st three characters from a variable
  • Previous by thread: Re: Making Folders
  • Next by thread: display alert parameters
  • Index(es):
    • Date
    • Thread