Re: Adding download URL to a file's Get Info box
Re: Adding download URL to a file's Get Info box
- Subject: Re: Adding download URL to a file's Get Info box
- From: Joe <email@hidden>
- Date: Thu, 28 Oct 2010 21:43:48 -0700
Save a little parsing.
set x to POSIX path of (choose file)
set y to do shell script "mdls -name kMDItemWhereFroms -raw " & quoted form of x
At 7:38 PM -0500 10/28/10, Alex Zavatone wrote:
>on adding folder items to thisFolder after receiving someItems
> if (count items of someItems) 1 then return
> set itemAlias to (item 1 of someItems) as alias
> do shell script "mdls " & (quoted form of (POSIX path of itemAlias))
> set urls to the result
> log urls
> display dialog urls
> set oldDelimiters to AppleScript's text item delimiters
> set AppleScript's text item delimiters to {"kMDItemWhereFroms"}
> try
set urls to (text item 2 of urls)
<SNIP>
_______________________________________________
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