Re: Adding download URL to a file's Get Info box
Re: Adding download URL to a file's Get Info box
- Subject: Re: Adding download URL to a file's Get Info box
- From: "Stockly, Ed" <email@hidden>
- Date: Thu, 28 Oct 2010 18:09:46 -0500
- Acceptlanguage: en-US
- Thread-topic: Adding download URL to a file's Get Info box
> I can copy the URL to the clipboard; open Safari; paste the URL; hit return.
> But, can I automate those steps?
> After reading Safari's dictionary multiple times, I have to conclude that
Safari doesn't know how to do that.
Try this:
tell application "Finder"
set myURL to the clipboard
end tell
tell application "Safari"
activate
make new document with properties {URL:myURL}
--or
set URL of document 1 to myURL
end tell
Also, since you're dealing with a list of URLs you could also script opening
a new Safari document, and open each URL in its own tab.
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden