• 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: Adding download URL to a file's Get Info box
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Adding download URL to a file's Get Info box (From: email@hidden)
 >Re: Adding download URL to a file's Get Info box (From: Alex Zavatone <email@hidden>)
 >Re: Adding download URL to a file's Get Info box (From: Luther Fuller <email@hidden>)
 >Re: Adding download URL to a file's Get Info box (From: Alex Zavatone <email@hidden>)
 >Re: Adding download URL to a file's Get Info box (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Adding download URL to a file's Get Info box
  • Next by Date: How Do I Get the html Source for a Web Page into a String?
  • Previous by thread: Re: Adding download URL to a file's Get Info box
  • Next by thread: Re: Re: AppleScript applications as CGI applications-- does it still work?
  • Index(es):
    • Date
    • Thread