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

mdls & .app?


  • Subject: mdls & .app?
  • From: Christopher Stone <email@hidden>
  • Date: Sat, 19 Feb 2011 21:36:46 -0600

Hey Folks,

It seems that 'mdls' will not work with an application (or folder)

--

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

--

# Works:
set theApp to "/Applications/TextEdit.app/Contents/MacOS/TextEdit"
set cmd to "mdls " & theApp
do shell script cmd

--

Is there a workaround for this?

The best thing I've found so far is 'stat', but the information difference is huge.

TIA

--
Best Regards,
Chris _______________________________________________
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: Steve Thompson <email@hidden>
  • Prev by Date: Re: List of all applications
  • Next by Date: Re: mdls & .app?
  • Previous by thread: How to mail an script created event
  • Next by thread: Re: mdls & .app?
  • Index(es):
    • Date
    • Thread