Re: Determining Binary Type
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