• 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
Re: URL Access Scripting with progress
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URL Access Scripting with progress


  • Subject: Re: URL Access Scripting with progress
  • From: dev_sleidy <email@hidden>
  • Date: Mon, 8 May 2006 00:32:46 -0400

I noticed that my script

tell application "URL Access Scripting"
	download aURL to file afile replacing yes with progress
end tell

Does not, in fact, display any kind of progress dialog. Is there something that I'm missing?


Yes. You are missing 'URL Access Scripting'. In order to see the Progress dialog - you are required to have System 9.x (or perhaps earlier installed), and '/System Folder/Scripting Additions/URL Access Scripting'.


With the above installation, and booted to System 9.x (or earlier) ...

set aURL to "http://www.apple.com";
set afile to "HD3:Users:s:Desktop:aFile.txt"

tell application "URL Access Scripting"
 download aURL to file afile replacing yes with progress
end tell

... will produce the desired results.

With the above installation, and booted to MacOS X (10.x.y) - with 'Classic' running ...

set aURL to "http://www.macosx.com";
set afile to "HD3:Users:s:Desktop:aFile2.txt"

tell application "URL Access Scripting"
 download aURL to file afile replacing yes with progress
 quit -- Required, or the script will never conclude.
end tell

... will produce the desired results.

If 'Classic' is not running - it, and 'URL Access Scripting' will be opened (launched, ran) when the code is executed.

Notice the addition of 'quit', in the MacOS X code?

----

If the above is not exactly what you want (or expect) - perhaps, in a future MacOS X release (after multiple $129 somewhat annual subscription installments) - such a feature will return. But then a lot of us are still hoping for 'WindowShade', a real coco 'Finder', ...
_______________________________________________
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
  • Follow-Ups:
    • Re: URL Access Scripting with progress
      • From: Scott Thompson <email@hidden>
References: 
 >Good book on advanced AppleScripting? (From: John A <email@hidden>)
 >URL Access Scripting with progress (From: Scott Thompson <email@hidden>)

  • Prev by Date: Re: URL Access Scripting with progress
  • Next by Date: bundle type script applications and Jaguar
  • Previous by thread: Re: URL Access Scripting with progress
  • Next by thread: Re: URL Access Scripting with progress
  • Index(es):
    • Date
    • Thread