Re: URL Access Scripting with progress
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