• 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: Determining Binary Type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining Binary Type


  • Subject: Re: Determining Binary Type
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 26 Jan 2010 10:26:25 -0600

On Jan 26, 2010, at 10:11 AM, Marconi wrote:

At 9:51 AM -0600 1/26/10, Luther Fuller sent email regarding Re: Determining Binary Type:
On Jan 26, 2010, at 9:32 AM, Marconi wrote:
Given a path like: "/volumes/SomeVol/System/Library/CoreServices/Finder.app/Contents/ Mac OS/Finder" how do I find out whether the file 'Finder' is PPC, Intel or Universal?

Use this ...

tell application "Finder" to kind of aliasToAppl

I get an error:

tell application "Finder" to kind of "/volumes/Bart/System/Library/CoreServices/Finder.app/Contents/ Mac OS/Finder"

Can't get kind of "/volumes/Bart/System/Library/CoreServices/Finder.app/Contents/ Mac OS/Finder".

In my example, 'aliasToAppl' must be an alias, not a posix path.
You need to change the posix path to an alias, then it will work.
For example ...

tell application "Finder" to kind of posix file "/volumes/..."

You can also use ...

alias "OS_X:System:Library:CoreServices:Finder.app:Contents:MacOS:Finder"
tell application "Finder" to kind of the result --> "Unix Executable File (Intel)"

But why dig that deep into the Finder.app package?
 _______________________________________________
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: Determining Binary Type
      • From: Christopher Nebel <email@hidden>
References: 
 >Determining Binary Type (From: Marconi <email@hidden>)
 >Re: Determining Binary Type (From: Luther Fuller <email@hidden>)
 >Re: Determining Binary Type (From: Marconi <email@hidden>)

  • Prev by Date: Re: Determining Binary Type
  • Next by Date: Re: Applescript and referring to a folder
  • Previous by thread: Re: Determining Binary Type
  • Next by thread: Re: Determining Binary Type
  • Index(es):
    • Date
    • Thread