• 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: Script to save webloc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to save webloc


  • Subject: Re: Script to save webloc
  • From: Philip Aker <email@hidden>
  • Date: Thu, 8 Jan 2009 01:51:48 -0800

On 2009-01-08, at 01:37:42, Scott Haneda wrote:

Sorry about this, I replied to author only, and want to get this back on the list...

Ok, so I take it first I need to get the url out of Safari?  Would the general psuedo code be something like this:

tell application "Sarafi"
-- get first current url of current tab
end tell
tell application "Finder"
--set dest to (folder "Users:me:Desktop" of startup disk) as alias
--( is that how I do the path? )
--make new internet location file at dest to theURL
--( theURL is the result of the url from the first tell block? )
end tell

I don't use tabs in Safari but this works for me:

set dest to (path to desktop)
tell application "Safari"
set curl to URL of document 1
set dnam to name of document 1
end tell
tell application "Finder"
make new internet location file at dest to curl with properties {name:dnam}
end tell


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Script to save webloc
      • From: Scott Haneda <email@hidden>
    • Re: Script to save webloc
      • From: Scott Haneda <email@hidden>
    • Re: Script to save webloc
      • From: Scott Haneda <email@hidden>
References: 
 >Script to save webloc (From: Scott Haneda <email@hidden>)
 >Re: Script to save webloc (From: Fuller Luther <email@hidden>)
 >Re: Script to save webloc (From: Scott Haneda <email@hidden>)

  • Prev by Date: Re: Script to save webloc
  • Next by Date: Re: Script to save webloc
  • Previous by thread: Re: Script to save webloc
  • Next by thread: Re: Script to save webloc
  • Index(es):
    • Date
    • Thread