• 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: Is there a way to script drag-and-drop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a way to script drag-and-drop?


  • Subject: Re: Is there a way to script drag-and-drop?
  • From: Mr Tea <email@hidden>
  • Date: Tue, 07 Mar 2006 11:03:36 +0000

This from Aaron Grant - dated 7/3/06 02.05:

> I'd basically like to extract URLs from a group of .webloc files and put the
> resulting URLs onto their own separate lines in a text document. Because
> .webloc files are binary files, they can't be processed by opening them into a
> text editor or with any other extractor application I've found so far.


Yes they can, sort of. You need to ask for the 'location' in a Finder tell
block.

tell application "Finder"
    location of file "Disk:Folder:File.webloc" --(aliases work too)
end tell

The result is the URL that the file points to, given as unicode text.

Nick
pp Mr Tea

--


 _______________________________________________
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

  • Follow-Ups:
    • Re: Is there a way to script drag-and-drop?
      • From: Mr Tea <email@hidden>
References: 
 >Is there a way to script drag-and-drop? (From: Aaron Grant <email@hidden>)

  • Prev by Date: Apply Text To Curved Path
  • Next by Date: Re: Apply Text To Curved Path
  • Previous by thread: Re: Is there a way to script drag-and-drop?
  • Next by thread: Re: Is there a way to script drag-and-drop?
  • Index(es):
    • Date
    • Thread