Extracting info from info window OTHER THAN the usual properties

Hi, the info window's property list does not include what's in the "more info" section: I am specifically looking for the "dimensions" property of a jpeg file. Is there some way to access it in a script?
thanks
  Mac OS X (10.4.6)  

I don't believe Finder exposes that information to AppleScript directly. There are many other ways to get image info, however. Here are three of them…
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">set hfs_image to choose file
tell application "Image Events" to tell (open hfs_image)
set {w, h} to get dimensions
close
end tell
{w, h}
-- UNIX METHODS
set posix_image to POSIX path of hfs_image
-- Using MDLS (Metadata List, AKA Spotlight)
set w to last word of (do shell script "mdls -name kMDItemPixelWidth " & quoted form of posix_image)
set h to last word of (do shell script "mdls -name kMDItemPixelHeight " & quoted form of posix_image)
{w, h}
-- Using SIPS (Scriptable Image Processing System)
set w to last word of (do shell script "sips -g pixelWidth " & quoted form of posix_image)
set h to last word of (do shell script "sips -g pixelHeight " & quoted form of posix_image)
{w, h}
</pre>

Similar Messages

  • Mail with multiple gmail accounts sending messages from wrong email, other than the one i select

    mail with multiple gmail accounts sending messages from wrong email, other than the one i select:
    i'm using mail on osx 10.7 with multiple gmail accounts. when i create an email, i check to be sure i'm sending/replying from the correct account. after i send it, somehow it actually sends it from a different account, other than the one i've selected "from." this is evidenced by the reply email i receive. how can i fix this?
    in preferences, i have "send new messages from : account of selected mailbox"

    From the Mail menu bar, select
              Mail ▹ Preferences...
    The Mail preference dialog opens. Select the Composing tab from the row of icons at the top. From the menu labeled
              Send new messages from:
    choose
              Account of selected mailbox
    Note that this setting may have no effect if you start a new message while a VIP or smart mailbox is selected in the mailbox list. Those are saved searches, not actual mailboxes.
    If the problem remains, select the Accounts tab in the preference dialog, then select the affected account in the list on the left.
    In the Account Information pane, select the correct server in the menu labeled
              Outgoing Mail Server (SMTP)
    If there's only one server in the menu, select
              Edit SMTP Server List...
    and add a new server with the correct settings. If you're not sure how to do that, try the Mail Settings Lookup.
    Another possibility is that the wrong card in your address book is selected as yours. Select your card in the Contacts application. Then select
              Card ▹ Make This My Card
    from the menu bar.

  • Can I use Apple store from a country other than the country I live in.  Example:  I live in USA and want to use Apple store in Thailand to buy and download thai content.

    Can I use Apple store from a country other than the country I live in.  Example:  I live in USA and want to use Apple store in Thailand to buy and download thai content.

    No, you can only buy content from your own country's store - to be able to buy form another store you need a valid billing address in that country and be in that country when buying from it. You can try requesting that the content that you want be added to the US store, but ultimately it's the content providers (record companies, film studios etc) that will have to grant Apple a license to sell it there : http://www.apple.com/feedback/itunes.html

  • How do you receive iMessages from a device other than the iPhone they originally are being sent to?

    I'm trying to receive iMessages from a phone other than my own. How do I receive them, I have both Apple IDs and both passwords but do not have current access to the phone I'm trying to get the iMessages from.

    Do you have the other phone's Apple ID active in your iPhone iMessage setting? If not, then you would not get them. And, the person sending the iMessage would have to be sending to the Apple ID and not the phone number.

  • MacPro wont boot from any disk other than the main HD

    Hi all,
    I want to startup my MacPro from a different drive other than the main (original) Macintosh HD, so I can do maintenance and for emergencies.
    However, I cannot startup from a DVD. Not DiskWarrior, or even the retail Snow Leopard disk.
    I attempted to install the OS on another internal drive, but the intallation seemed to fail (the disk I tried to install onto was Mac OS Extended, Case-sensitive, Journaled, but there were no complaints from the installer.)
    So even though my computer runs OK, and I can continue doing work etc, I am unable to do the maintenance that I believe it needs.
    I have tried to:
    • Run the updated DiskWarrior DVD
    • Run the SL instal DVD
    • Taken all the extra wires/drives out of the back of the computer
    • Attempted to install the OS onto a second internal drive
    I have not:
    • Zapped the PRAM yet.
    • Run the computer in target disk mode and worked on it from my MacBook
    • Run the MacBook in target mode to use its DVD drive.
    This problem has come up before on this machine. I can't remember what the problem was, other than I used to run the MacPro on its side. No longer. Not for the last few months.
    Anybody come across this before? Any ideas?
    Thanks,
    Aaron

    You could use CCC to do a trimmed down clone and leave out most of the sub folders. Do a 2nd clone to have a full working copy.
    Carbon Copy Cloner 3.4.2
    Cloning as a Backup Strategy
    My guess is one of your drives needs to be reinitialized. Only during format will the hidden partition blocks be tested, and of course a healthy set of partitions created, things that cannot be repaired normally - though Lion Recovery partition does have abilty to check the health of partition tables. And about the only reason I'd even buy Lion!
    Check partition table health in Lion's Disk Utility
    Manage all partitions with Disk Utility in OS X

  • Downloading movies & tv shows from iTunes shops other than the US

    I download from the Danish & Canadian iTunes stores. I was just wandering if any time soon we who download from the other iTunes stores will get the opportunity to download movies & tv shows.
    I am feeling really left out!!!!!! : (

    The usual answer is that the copyright holders are holding the cards. It is their decision as to what can be sold in which iTS. I am sure that Apple would love to have just one store for everyone.
    No one knows when video and TV Shows will be available in iTS other than the US.
    MJ

  • Can Apple store (not iTunes) giftcards be bought from a store other than the Apple online store?

    Say, at Target or Walmart?

    The conditions are for the "credit card" location. You need an accepted card with one of the accepted locations.
    You could buy the upgrade with an account established in the U.S. that also has a U.S. credit card address.
    There is no product shipped and the registration info is sent via email.

  • How do i purchase music from a country other than the one i'm in

    i live in the usa and i want to purchase music form the greese itunes store. I don't have a credit card registered in greece. Is it possible to purchase and download from a different country? How do I do it? or how do i contact apple to ask this specific question/
    thanks

    This question is asked frequently so I'll just quote the most succinct answer (courtesy of Dave Sawyer) from the many given:
    In order to buy from any given country's iTunes Music Store, you must have either:
    a) a credit card with a billing address in that country, or
    b) a mailing address in that country and a gift certificate or a prepaid card that was bought in that country.
    If you cannot fulfill one of these two sets of conditions, you will not be able to purchase from any given country's iTMS.
    .......this is due to restrictions placed on Apple by the record companies and other rights holders (who are often completely different from country to country and so all require their own individual negotiations and contracts), not by Apple's choice. And this also applies to all the legal download stores that carry major-label content, not just the iTMS.

  • Putting music on iPod Touch from a computer other than the main one

    Is it possible to put music from my mac on to my friend's iPod touch without ruining her contacts and/or deleting the music she already has on there. Also, she uses a PC to sync her iPod normally. Should this be a problem?
    Also, can I not put on my photos, contacts and iCal events?

    You can view and listen to your music library from another computer with Home Sharing turned on.  To turn on Home Sharing in iTunes, go to File > Home Sharing > Turn on Home Sharing for both computers.  This is for iTunes 11.  If you are running an older iTunes, go to Advanced > Turn on Home Sharing.

  • Getting Firefox Mobile from a location other than the android market

    I love firefox and would like to use it on my android tablet a Viewsonic VB730.
    I realize this is not in the supported device list but would like to give it a try anyway.
    The issue is that the VB730 does not have the Android Market app on it.
    Is there another location I can get Firefox for Android? ( Perhaps Amazon.com ??? )
    Thanks
    Greg Richter

    You can use http://bit.ly/fennecftp to download from outside the market. You will need to check back every 6 weeks to install the latest version. There is no automatic updates outside the market.

  • Updating iPhone software from a computer other than the one it is synched

    I am going to be traveling without the PC my iPhone is synched with. If a software release comes out, can I update it from another computer somewhere else and not lose my data?

    Yes, but I wouldn't recommend it.
    You can install a firmware update without syncing - unless the update is a major one that requires the iPhone being deleted first before the update is installed - as with 2.0 over 1.1.x.
    And if something goes wrong with the install, you may be left with an updated iPhone but without any data.
    I would wait until returning home to use the computer that you sync your iPhone with since there is always the possibility that something goes wrong with the installation. This has never happened to me with any firmware update, but I still wouldn't use another computer.

  • Croppping from a place other than the center?

    Hello, i have been working on a project for a few days now. I have scan in pages with pictures on them but also text. I need to create a thumb nail of the picture within the scan document, currently located in the upper left hand corner. So my question is. Is there a way to crop an image in automator with a diffrent center point than in the middle of the picture? I have about 3000 scans to do and it will take way way way too long the other way going step by step.
    If anyone knows how to do this please answer.

    Hi there Christopher,
    is the image in the same place in every scan ?
    If so the only way I can think of doing it automatically would be to use Photoshop and AppleScript !
    Do you have Photoshop ?
    regards
    Ric

  • If there a way to restore my icloud from a backup other than the very last one?

    I deleted some pics before my last backup that I need back. Can someone please help me?

    Apple states that it keeps your last three iCloud backups.  During the process of restoring an iCloud backup, iCloud will show you which ones are available and ask you to select the one you want to restore (see image below).  You may need to tap "Show older backups" to access earlier ones.  The only way to find out if an earlier one is available is to go through the restore backup process.

  • How to configure the zxp so that it will place the related files for the panel in specific folder other than the usual 'C:\Program Files (x86)\Common Files \Adobe\CEPServiceManager4\extensions\' folder ?

    Hi,
    I am Working on a panel for Adobe Premiere pro CC, Now we got a panel set up which will install all the related folders and files which are part of the Extension content folder in the
    C:\Program Files (x86)\Common Files \Adobe\CEPServiceManager4\extensions \Panel\CONFIG folder. But we need to change this location to C:\Users\USER\APPDATA folder or any other user specified folder during installation itself.
    Is there any way to do this from extension builder?
    Thanks and Regards,
    Anoop NR

    Thanks guys,
    Got it !! Hybrid extensions.
    I am using Adobe Extension builder 3 in Eclipse to code and create the zxp for Premiere pro panel.
    Seeing the hybrid extension part in  HTML Panels Tips: #10 Packaging / ZXP Installers | Photoshop, etc. I have added a hybrid extension panel using the bundle manifest editor in the extension builder. it creates an mxi file automatically with all the properties, I have to change the maximum host version number in the mxi file in order to make the extension work in the Premiere pro CC 2014. Using the Hybrid option in the Bundle manifest editor we can choose a set of folder paths for placing the files during installation itself and later can be used using 'csInterface.getSystemPath(SystemPath.CODE)' from javascript functions to modify them.
    Thanks for your relpies,
    Anoop NR

  • 10.6.2 won't install to another volume other than the boot volume

    Report a possible bug to Apple.
    as is often recommended for updates, I install from another volume other than the one I want to update, and never update the volume I am booted from. The 10.6.2 update (both combo and update only) won't update any other volume other than the one booted from. Previous updates of OS X have always been able to do this. When I try to change installation location to another volume (which contain 10.6.1) it posts an error saying "This update requires 10.6.2 to be installed", which is wrong it two ways. First, how can an upgrade require itself to be installed before it will actually install. Second, there is no reason it shouldn't have been able to update the 10.6.1 volume. I had two 10.6.1 volumes, when booting from either one, it wouldn't update the other. The update will install if it's run on the volume I boot from, but that defeats the purpose of trying to eliminate update issues by installing from another volume.

    -update-
    In order to to update remotely, there seems to be a number of new and interesting restrictions
    imposed. I came to these basic conclusions by experimentation:
    1. I was unable to install a 10.6.2 update to a remote 10.6.0/10.6.1 volume, while booted from
    a 10.6.0/10.6.1 volume. In other words I had to be booted from a 10.6.2 volume to be able to
    remotely install (or reinstall) a 10.6.2 update to a remote 10.6.0/1/2 volume.
    2. If the volume I was installing to was another internal volume, then I usually (but not
    always) had to set the volume I was trying to install to, as the default startup volume in system
    preferences before the installer would accept it as a valid volume to update.
    3. If the volume I was installing to was a firewire or USB drive, then the #2 restriction did not apply,
    but the the #1 restriction still applied (I still had to be booted from a 10.6.2 volume to install
    a 10.6.2 update).
    4. If, after following the above rules, you are still having trouble, simply rebooting and trying
    again will usually work.
    So in conclusion:
    Remotely updating an external firewire or USB drive was relatively simple and easy, just boot
    from an internal 10.6.2 installation and do it.
    Remotely updating another internal drive though, can be quite annoying.
    Apple, it seems, is heavily promoting the automatic update method.
    Lately, it seems, it is getting more and more difficult in many cases, to get a major
    OS update to "take" properly. I have been heavily using the "bare bones admin account"
    method (outlined in my previous post) for the last several months with good success.
    I agree with you that the remote method should be the best, but Apple's install packages
    have become increasingly difficult to install using that method, even in 10.5.x.
    I will say this though, the updates I installed today using the remote method
    are working just fine, even though I had to wrestle with them to get them installed.
    Kj ♘

Maybe you are looking for

  • Join Between PO and Requisition

    Hi, I am trying to do a report in Disco (4.1.48) on all the Open Po's associated Req with the Req Amount and Amount receipted. I can get the info for the Req fine and the info for the PO's fine. But I cannot get the join between the Po and Req to wor

  • JVM running with LINUX operating system on I686

    Is there a JDK that runs in an I686 machine with linux as operating system. I can't raise a mule server because JVM seems to not recognize the hardware.with I686. I am not an expert in JAVA but it seems to give the following error. I am getting this

  • Android simulator

    As I only have an iPad I was wondering if there is a tool which I can use to simulate an Android device (maybe one that let's yuo choose several Android models? Or screen sizes?). I am struggling getting my head around publishing for Android as they

  • How to I get my purchased iTunes songs downloaded to my new iPod?

    I purchased a new Ipod, went to the Apple store and followed all instructions for transferring my Itunes library to it but, it won't sync my purchased songs.

  • Issues using Oracle SQL server Developer migration work bench

    Hi all, We are trying to migrate the application databases from SQL server 2000 to Oracle 10g using Oracle SQL Developer 1.2.1.32.13: Following is the list of issues that we faced while trying out this migration on dev environment. 1. The data migrat