• 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
To .jpg or not
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

To .jpg or not


  • Subject: To .jpg or not
  • From: Carl Anderson <email@hidden>
  • Date: Fri, 19 Mar 2004 03:35:51 -0500

I have written an applescript that does not work. It is listed below:
tell application "Finder"
set theUrl to "http://webaddress.jpg";
set theFile to (((path to desktop folder) as text)& "test:test.jpg")
end tell


tell application "URL Access Scripting"
with timeout of 60 seconds
try

download URL heUrl to (theFile) replacing yes
display dialog "Download Successful" with icon note
on error
display dialog "Sorry, couldn't download the webpage" with icon 2
end try
end timeout
end tell

If I remove the .jpg from the line "set theFile to "Macintosh
HD:Users:carlande:Desktop:Test:Test.jpg"" the script works.Is this
documented anywhere?
Sincerely;
Carl Anderson
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: To .jpg or not
      • From: BJ Terry <email@hidden>
    • Re: To .jpg or not
      • From: Tom McKenna <email@hidden>
  • Prev by Date: Re: replacing a Scripting Addition in 10.2.8 ?!
  • Next by Date: Hat bug.
  • Previous by thread: Re: replacing a Scripting Addition in 10.2.8 ?!
  • Next by thread: Re: To .jpg or not
  • Index(es):
    • Date
    • Thread