• 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: Scott Haneda <email@hidden>
  • Date: Thu, 8 Jan 2009 01:37:42 -0800

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
On Jan 6, 2009, at 5:31 AM, Fuller Luther wrote:

I used the following to make a .webloc link to a folder on my Mac ...

URL of linkedFolder
make new internet location file at ____ to (the result) with properties {name:"___"}


You don't need the first line since you already have a url.

-- Scott


On Jan 6, 2009, at 5:31 AM, Fuller Luther wrote:

I used the following to make a .webloc link to a folder on my Mac ...

URL of linkedFolder
make new internet location file at ____ to (the result) with properties {name:"___"}


You don't need the first line since you already have a url.

On Jan 6, 2009, at 6:17 AM, Scott Haneda wrote:

Hello, I routinely drag a Safari url to the Desktop, where a .webloc file is made. Is there any way to script this, so I can take the current url, in the current tab, and save it as a .webloc to a specific directory?

I will bind this to a key command in only Safari. This should save me having to grab for the mouse every time.

-- Scott

_______________________________________________
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: Philip Aker <email@hidden>
References: 
 >Script to save webloc (From: Scott Haneda <email@hidden>)
 >Re: Script to save webloc (From: Fuller Luther <email@hidden>)

  • Prev by Date: Re: count pages in PDF on OS 10.4
  • 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