• 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: Adding download URL to a file's Get Info box
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Adding download URL to a file's Get Info box (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Adding download URL to a file's Get Info box
  • Next by Date: Re: Adding download URL to a file's Get Info box
  • Previous by thread: Re: Adding download URL to a file's Get Info box
  • Next by thread: Re: Adding download URL to a file's Get Info box
  • Index(es):
    • Date
    • Thread