Re: Is there a way to script drag-and-drop?
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