Terminal Command(s) to Identify an App as 32-Bit, 64-Bit, or Universal.

I am sure I am doing something wrong, but each time I see a terminal command to do what is indicated above, I try it, and it doesn't work for me.
So, I would greatly appreciate someone definitely in to know helping me out with the command(s) mentioned in my subject.

I believe the command you're looking for (or at least one that works) is "file";
The example below indicates that Mail.app is capable of launching as a 64bit app;
+[Shirow:~] shmoo% file /Applications/Mail.app/Contents/MacOS/Mail+
+/Applications/Mail.app/Contents/MacOS/Mail: Mach-O universal binary with 2 architectures+
+/Applications/Mail.app/Contents/MacOS/Mail (for architecture x86_64): Mach-O 64-bit executable x86_64+
+/Applications/Mail.app/Contents/MacOS/Mail (for architecture i386): Mach-O executable i386+
Below indicates that VLC installed on my mac is only a 32bit app;
+[Shirow:~] shmoo% file /Applications/VLC.app/Contents/MacOS/VLC+
+/Applications/VLC.app/Contents/MacOS/VLC: Mach-O executable i386+
love,
shmo

Similar Messages

  • Is there Any Terminal Command to Bring Icon, Doc, App & Window Size to Default

    Hi. Is there a kind of universal restore to default (as if it was freshly or cleanly installed) everything in the OS (icon size, dock size, placement or position, app window size default, etc.) either in terminal or some hidden restore to default button in Lion and Leopard? Or everything has to be adjusted manually? Thank you in advance.
    Gbu.

    You could delete the plists for the things that control those options. The system will then recreate the default plists. plists are preference list files stored in you user/Library/Preferences folder or in the main /Library/Preferences folders. Most can just be deleted without problems; however, some contain setup information (like Mail's) that is difficult to recreate, so moving the plist first so you can restore it if everything goes wonky.
    For Finder windows, there is a hidden .DS_Store file that keeps the window settings for each folder. I'm sure I've seen a command to hunt down and delete all of those files.

  • Terminal Commands for Identifying  Apps as 32-Bit, 64-Bit, or Both

    I posted a prior topic on this matter, but cannot find it. I have seen these what I am asking about, but can't locate them. I am trying to identify the terminal commands noted in my subject.
    Message was edited by: donv (The Ghost)
    Message was edited by: donv (The Ghost)

    This is what I was looking for:
    In terminal, type: file /Applications/Safari.app/Contents/MacOS/Safari
    What is returned is below. The second/third line identifies Safari as a universal binary with two architectures. The fourth/fifth line identifies the architectures as 32 bit and 64 bit. I am not sure what the sixth/seventh line does unless it identifies Safari as being compatible with PowerPC.
    xxxx-MacBook-Pro:~ donv1$ file /Applications/Safari.app/Contents/MacOS/Safari
    /Applications/Safari.app/Contents/MacOS/Safari: Mach-O universal binary with 2
    architectures
    /Applications/Safari.app/Contents/MacOS/Safari (for architecture x86_64):
    Mach-O 64-bit executable x86_64
    /Applications/Safari.app/Contents/MacOS/Safari (for architecture i386): Mach-O
    executable i386
    For any wondering. If SL is started in 64-bit kernel mode, then it will run Safari as a 64-bit program. The same will happen if SL is started in 32-bit mode. Leopard also will run Safari as a 64-bit program. Suppose one has a purely 64-bit program. The same things will happen. Note also that some 32-bit programs will run in 64-bit mode, and, at least in some cases, they will run faster in 64-bit mode. On the other hand, some 32-bit programs will not run in 64-bit mode.
    Thus, at this time, the benefits from being able to start in 64-bit mode are minimal. That is, one might be able to run some 32-bit programs slightly faster than in 32-bit mode. On the other hand, this minor benefit would, IMO, be offset by not being able to run certain 32-bit or 64-bit programs simultaneously. I'll be sticking with 32-bit mode.
    If there currently is more to the story than I have told, then please pile on. I am always interested in avoiding misinformation.
    Message was edited by: donv (The Ghost)
    Message was edited by: donv (The Ghost)
    Message was edited by: donv (The Ghost)
    Message was edited by: donv (The Ghost)
    Message was edited by: donv (The Ghost)

  • How do I back up the music and apps etc. I restored my computer and I reinstalled iTunes, I was told something about a terminal command line, what does that mean? Please help

    How do I back up the music and apps etc. I restored my computer and I reinstalled iTunes, I was told something about a terminal command line, what does that mean? Please help

    - Transfer iTunes purchases to the computer by:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    - Transfer any other music by using a third-party program like one of those discussed here:
    Copy music
    - Connect the iPod to the computer and make a backup by right clicking on the iPod under Devices in iTunes and select Back Up
    - Restore the iPod from that backup. The restore will also update the iOS.
    Note that the backup that iTunes makes does not include synced media like apps and music
    Are you sure you have a 3G iPod? A 1G iPod can only go to iOS 3.1.3
    See:
    Identifying iPod models

  • I get "App Store Disabled" on my MacBook Pro due to profile issues. What Terminal command can I use to reset profile settings?

    After transferring documents from one MacBook Pro to another I get some weird errors due to settings that seem to have transferred over. One is that the Mac App Store is disabled.
    Are there any Unix / Terminal commands I can use to reset these?

    Forgot Your Account Password
    For Lion/Mountain Lion
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password and
         OS X Lion- Apple ID can be used to reset your user account password.

  • Options passed to apps when opening from Dock vs Terminal command line

    I have a much used freeware application called Aquamacs (it is a mac-specific version of the emacs text editor). If I open the application from the dock, I can not use it to "compile" .tex files written in the LaTeX markup language. However, if I start it from a terminal command line with no additional options:
    /Applications/Aquamacs\ Emacs.app/Contents/MacOS/Aquamacs\ Emacs filename.tex
    then everything works just fine. Evidently, beginning from the dock passes some additional option that interferes with LaTeX. Does anyone know how to control what options an application gets at startup from the dock? I would even be satisfied just to know what options are passed. Thanks.

    From what I'm reading, you are working towards MDT but it's not approved yet, so the goal is to:
    Deploy a "bundle" of applications as painlessly as possible without using UDI to make customizations quick.
    Lets talk options then.
    Option 1:  If machines types are in a unique OU or security group, create a collection for that and set these applications to mandatory install.  After initial deployment, the provisioner can drop the computer in the proper OU or group and you're
    good to go.  Downside:  collections refresh plus client check-in makes this less than instant.
    Option 2:  Orchestrator.  You can write a runbook that will approve and push apps.  You can then use the Orch console front end or a more friendly sharepoint/SM portal to push things out like a Manager would approve apps.  Downside:  if
    not already deployed, there's no way they would approve that infrastructure if they are hesitant about MDT/UDI :)
    Option 3:  PowerShell and WMI.  This should be doable ... but I've never tried it.  It looks like you're headed down the right path ... but i guess my question is:  if you can't have UDI when do get to pick the app?  Are you planning
    to write a full multi-box for them to check their apps after the fact?  In that case ... just have the appcontroller URL pop up on first login ... might be easier than reinventing the wheel.

  • Slipstreaming: Is there a Terminal Command or an App to Slipstream 10.5 with 10.5.8 Combo Update so It Become One .DMG for Burning Purposes?

    Hi. Is there a Terminal command or an App for OS X (Snow Leopard which I'm using now as a backup OS X from an external USB drive) that can slipstream the 10.5.8 combo update to 10.5 retail installer (I 10.5.8 for an experiment) to be burned to either DVD and other media like with this Windows 8 app:
    http://lifehacker.com/how-to-slipstream-windows-updates-into-your-installatio-15 62956432
    Thank you in advance. Have a great week.
    God bless, Matt. 16:18, 1 Timothy 3:15

    Ya, I'd love to have the computers connected to the Xserver, unfortunately against my heeding, I was ordered to take them off of the Xserver, so they only have a local account that automatically logs in on startup, and even though I have Parental Controls set, I can not stop them from going to Safari, selecting an inappropriate image and setting it as the background, so now I’ve been ordered to fix all of the backgrounds that people are messing with.
    My Xserver is running OS X 10.4.11 Server Edition. Yes, I would love a new server, but that’s not happening due to budget cuts.
    So what I am hoping for is a command that I can put into Apple Remote Desktop v3.5.3 and push out to all of the computers via its Unix commands and reset all the desktops to their default image.

  • Terminal command to add length of event in calendar app

    Hi,
    I would like to see if i can add the length of the event in apple Calendar.
    I.e in apple calendar it currently displays the name time of event and location.
    I would like to add the length of the event, ie starts at 9 am finishes at 10 event displays 1 Hour.
    Like this would perfect
    Any ideas?

    I'm not sure exactly what you are asking.
    You can set both the start time and the end time of an event in Calendar. Just click on the time in the event display panel.
    Or do you want to change the default time of one hour to something else?
    To do that, you use the following Terminal command:
    defaults write com.apple.iCal 'Default duration in minutes for new event' X
    where X is the time in minutes.

  • Any terminal commands to allow certain apps to over ride screen saver?

    I have always wondered if there are any terminal commands to over ride the screen saver when certain programs are running, such as slide shows and the current iTunes 10?

    Those commands would just change various preferences settings. You might take a look at Caffeine.

  • Need a Terminal Command

    Hi, I have no idea how to use terminal so I need code I can copy and paste. I am running iFreeMem and its crashed. These type of apps do not show up in the force quit box so I have no idea how to force quit it. My only idea was Terminal but I don't know how to do it.
    Can someone please help? Has this ever happened to anyone? I just read some articles that made me decide to trash the app altogether, but I need to get it closed first. :o)
    I have to many things going on to shut the computer down at the moment and the iFreeMem screen is in the way of everything (floats on top). Thanks in advance!

    You must know either the correct case sensitive name of the application, such as iFreeMem. If you do then the Terminal command is:
    killall iFreeMem
    Press RETURN.
    However, even though iFreeMem is an application it may fork a process with a different identifier. If so the above command will fail. In this case you need to find the PID - Process IDentifier. In the Terminal enter, top, and press RETURN. If the process is in the listing then you get the PID from the lefthand column. Use the same killall command but with the PID instead of the application name.
    If you cannot find a PID, then you need to restart the computer. If the application runs automatically then you need to uninstall its components. See the following:
    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash. Applications may create preference files that are stored in the /Home/Library/Preferences/ folder. Although they do nothing once you delete the associated application, they do take up some disk space. If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application. In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder. You can also check there to see if the application has created a folder. You can also delete the folder that's in the Applications Support folder. Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item. Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder. Log In Items are set in the Accounts preferences. Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab. Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    Some software use startup daemons or agents that are a new feature of the OS. Look for them in /Library/LaunchAgents/ and /Library/LaunchDaemons/ or in /Home/Library/LaunchAgents/.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term. Unfortunately Spotlight will not look in certain folders by default. You can modify Spotlight's behavior or use a third-party search utility, Easy Find, instead. Download Easy Find at VersionTracker or MacUpdate.
    Some applications install a receipt in the /Library/Receipts/ folder. Usually with the same name as the program or the developer. The item generally has a ".pkg" extension. Be sure you also delete this item as some programs use it to determine if it's already installed.
    There are also several shareware utilities that can uninstall applications:
    AppZapper
    Automaton
    Hazel
    CleanApp
    Yank
    SuperPop
    Uninstaller
    Spring Cleaning
    Look for them at VersionTracker or MacUpdate.
    For more information visit The XLab FAQs and read the FAQ on removing software.

  • Terminal Command, how to set defaults write, make application(s) use directory path where file last saved?

    Does anyone know whether there's a terminal command to make all applications remember/use the last directory/path where I last saved a file?
    For example, let's say there are (10) ten PDF's on a website, and I want to use Preview.app to open and save each file to the same directory.
    Problem is, after each time I save a file, Preview.app doesn't automatically remember/use the last directory where I saved my file(s).
    Forcing me to navigate back to the same directory after each time I save a file; super-annoying.
    But, for some reason, when saving images from the web, Firefox remembers the last directory where I saved the file (jpeg).
    So I'm hoping there's some way, possibly a terminal command to set/force all applications (including Preview.app) to remember/use the directory/path where file(s) were last-saved.
    Anyone?

    Get the third-party utility Default Folder X 4.4.9.

  • [SOLVED] Looking for a terminal command or key binding to exit Openbox

    I've searched the forums and googled, but I haven't been able to find the answer.  I'm sure I've missed it somewhere...
    I start my openbox session with 'startx' from the command line. I would like a terminal command or a key-binding to be able to exit openbox and return to the command line. I just don't like using the menu with my notebooks touchpad.  I just can't seem to figure out what command is used. The menu.xml file lists the command as "Exit", but typing that in a terminal just exits the terminal.
    Any help appreciated.
    Last edited by badfrog88 (2010-09-05 19:08:43)

    gorky wrote:ctrl-alt-backspace won't do the job?
    IIRC, it's disabled by default in xorg-server 1.7 and newer.
    @ badfrog88
    Ctrl + C will kill (almost) any running app you point it to.
    Last edited by karol (2010-09-05 19:17:29)

  • Multiple entries in 'Open Width'using the above terminal command

    /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.fram ework/Support/lsregister -kill -r -domain local -domain system -domain user
    I tried using the above terminal command to reset launch services but it does not seem to work. I still have multiple entries. What am I doing wrong?

    You may have to clarify. Multiple entries in Open With can be normal. For example if you have multiple versions of an application for whatever reason, they will all show. Plus, any applications that report being able to open a file type will show (had an annoyingly long list for text files on my old machine as some apps that didn't even handle documents such as games reported being able to open them).

  • I need help starting a Terminal command at start-up to help silence CPU fan

    I have a 24" iMac (Early 2009) and the CPU fan runs at full RPMs - NOTE: it is a refurbished model. I think that the person who did the refurbishing either messed up the CPU Temp Sensor or something, because the CPU temps are fine and the fan kicks on right after start-up chime.
    Anyways, I have found a terminal command (see below) that, when used in conjunction with smcFanControl, will force my CPU fan to run at 1200 RPM. I need a way to either auto-launch this Terminal Command at start-up, or an easier way to launch it because having to type it out in Terminal every boot and reset is getting old.
    Terminal Command:
    /Applications/smcFanControl.app/Contents/Resources/smc -k F2Mx -w 3cf0
    Any help would be greatly appreciated!

    You shell script should look something like this:
    #!/bin/bash
    your command line
    Construct this in your favorite text editor and save as plain text, not .rtf.  Call the file anything you want, but here I'll call it slowfan.
    In terminal type,
    chmod +x /path/to/slowfan
    where /path/to/slowfan is the path to the slowfan file.  You could drag the file into the terminal after typing the chmod +x followed by a space.  This step is only to mark the text file (script) as executable.
    Now you can run Platypus and set up a simple app with admin privleges.  Then test the app.  If it works you can then add it to your login items.
    If you decide to use applescript (do shell script descibed earlier) then you could just use the full pathname to whereever you saved the script and save that as a applescript application.  Again test it and then add to your login items.  I would bother adding an alias to .bash_profile.  That just adds to the complextity.
    As you can see, with Platypus you only have the single app it creates to deal with.  The script is enclosed in the generated app bundle for easy updating if necessary later on.  With the applescript method you will need to keep track of two spearate files; the applescript and the shell script.  Actually three, the app too.

  • Terminal commands

    I am looking for a good manual or resource of terminal commands to download. Does anyone know of one.
    I am pretty new to terminal but not new to Mac OSX
    I want to do a few tweaks and if anyone knows the commands then please let me know.
    1st i want to make it so that when I CMD + TAB to an Application the Window of the App is live and I no longer need to click on the window to use it.
    Also I would like there to be no need for me to do the 2 click on a window to be able to say, type in this box or click on a button or link. I find the settings very annoying and slow you down a lot when using a lot of apps at once.
    There are many other tweaks i would like to do but for now these will do.
    Thanks.

    Ah, Ask and thou shalt receive:
    Straight from Steve's library;http://manuals.info.apple.com/enUS/Command_Line_Adminv10.5.pdf
    They ought to call it "The real Men and Womens MacOSXSrvr_guide"
    http://manuals.info.apple.com/enUS/File_Services_Adminv10.5.pdf
    Another essential from Steve's Library about new stuff in Leo.
    http://www.apple.com/downloads/macosx/unixopensource/clix.html
    You're going love this little gem.
    http://www.macobserver.com/tips/macosxcl101/index.html
    http://www.matisse.net/OSX/darwin_commands.html
    And a couple of nice informative web pages to boot.
    That ought to keep you intrigued for a while.
    Kj
    P.S. Can you feel me?...
    Yeah, You got it!!!
    Message was edited by: KJK555

Maybe you are looking for

  • Creation of new page format

    Hi I have created new page format and added it to format and then to device by using SPAD. This new page size is 8 X 6 Portrait( Is there any standard sap page format available with this size) the problem is that when print out is taken by using scri

  • XI Server Hard disk full, no space available

    Hi Everyone....       XI Server Hard disk, is full. Its showing Zero Bytes. Even there is no option to add another hard disk now. Even though Log files are deleted, it showing zero bytes.       Please provide a solution as soon as possible.          

  • ICR Process 2 - Line Item Missing from Reconciliation Step FBICR2

    Dear Experts, I am very close to process 002 working well. I have a scenario I am hoping you can help with: 1. I posted two intercompany documents (Screenshot of Both Documents Here: http://img139.imageshack.us/img139/7264/documentsposted1of2.png) 2.

  • Namespace Problem

    We are having an issue with our bpel processes when it calls an external web services through a partner link, There seems to be an issue with the namespaces, our webservice has a complex type request and response name structure, The request structure

  • Importing an Image (png) into a designated (Coordinated) location.

    Greetings, I'm currently developing a TicTacToe application. I am using an array to store the points (Coordinates) of where I would like an image to be input when I call a paint method. Eg An O in position 1 would use the coordinates associated with