• 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: mdls & .app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mdls & .app?


  • Subject: Re: mdls & .app?
  • From: Steve Thompson <email@hidden>
  • Date: Sun, 20 Feb 2011 08:44:23 +0000


On 20 Feb 2011, at 03:36, Christopher Stone wrote:

# Does not work:
set theApp to "/Applications/TextEdit.app"
set cmd to "mdls " & theApp
do shell script cmd


It works here:

set theApp to "/Applications/TextEdit.app"
set cmd to "mdls -name kMDItemLastUsedDate " & theApp
do shell script cmd


tell current application
do shell script "mdls -name kMDItemLastUsedDate /Applications/TextEdit.app"
--> "kMDItemLastUsedDate = 2011-02-09 22:09:20 +0000"
end tell

Result:

"kMDItemLastUsedDate = 2011-02-09 22:09:20 +0000"

What do you get?

Steve
 _______________________________________________
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: mdls & .app?
      • From: Christopher Stone <email@hidden>
References: 
 >mdls & .app? (From: Christopher Stone <email@hidden>)

  • Prev by Date: mdls & .app?
  • Next by Date: <no subject>
  • Previous by thread: mdls & .app?
  • Next by thread: Re: mdls & .app?
  • Index(es):
    • Date
    • Thread