• 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: Launching apps in 32/64 mode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launching apps in 32/64 mode?


  • Subject: Re: Launching apps in 32/64 mode?
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 14 May 2010 12:20:34 -0700

On May 13, 2010, at 2:55 PM, Luther Fuller wrote:

> On May 13, 2010, at 3:22 PM, Thomas Summerall wrote:
>
>> Is there a way to use Applescript to tell the finder to launch an app in 32 bit mode or 64 bit mode?  Or maybe set an attribute of the app to indicate this and then launch it?
>>
>> What I really want is a way to make an alias to an app to launch in a particular mode and then just double click that to launch the app without having to worry about the path to the app in an Applescript, but that doesn't seem possible.
>
> The Oct 2009 issue of MacTech magazine had an interesting article ...
>
> http://www.mactech.com/articles/mactech-synopses/305083-25.10-2510Road-Synopsis.html
>
> Unfortunately, this link only allows you to read the first paragraph.
>
> The info you need begins on page 64, under the heading "64-bit" which continues to the next page with ...
>
> "Ideally, your application should run as 32-bit on 10.5 and 64-bit on 10.6."
>
> and continues with an explanation about what to put into an application's Info.plist file to make it do just that. ...

I don't think that's what M. Summerall had in mind, though -- he wasn't asking for an application that always runs a particular way for a particular OS version, he was asking for an easy way to select which runs.

The simplest way to do this is to simply duplicate the application in question, and set the "Open in 32-bit mode" bit on one of them (or munge the Info.plist if you really feel like it), and launch whichever one you need.  Uses some extra disk space, obviously, but probably not much relative to your free space.

The only script-y way I'm aware of to select the architecture of a single binary is the arch(1) command, something like this:

	do shell script "arch -i386 /Applications/TextEdit.app/Contents/MacOS/TextEdit &> /dev/null &"

Substitute the appropriate path, and "-x86_64" instead of "-i386" if you want 64-bit, and there you are.


--Chris Nebel
AppleScript Engineering

 _______________________________________________
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: 
 >Launching apps in 32/64 mode? (From: Thomas Summerall <email@hidden>)
 >Re: Launching apps in 32/64 mode? (From: Luther Fuller <email@hidden>)

  • Prev by Date: Rép: Revisited: Selecting a pop up button value in a Print dialog
  • Next by Date: Re: Launching apps in 32/64 mode?
  • Previous by thread: Re: Launching apps in 32/64 mode?
  • Next by thread: Re: Launching apps in 32/64 mode?
  • Index(es):
    • Date
    • Thread