Applescript and Aperture

Unlike all of the other questions I've been able to find regarding Aperture and Applescript, I'm not (yet) interested in scripting export. I'm trying to do some import functions.
Specifically, I have a hierarchical filesystem setup that I'd like to mimic in Aperture. I can recursively examine the filesystem, but I haven't found a way to create folders/subfolders in Aperture (I can't use Projects, because my filesystem hierarchy has more than 20,000 pictures in it). The idea is that I'll have nested subfolders in Aperture, with the leaf nodes being projects containing my pictures.
It's likely that my current scheme is less than ideal (the folder structure should probably be converted to tags instead), but I want to use Aperture to help me impose a new scheme.
In any case, every variant I've tried on "create subfolder ..." has failed, but the error messages are cryptic. I was hoping there was a reference somewhere that my Googling has missed. I welcome any advice (even if it's "You can't/shouldn't do that!")
Thanks!

I'm wondering why you would need Applescript at all - unless i'm not understanding correctly. Can't you use the "Import - Folders into a Project" ?
This is from page 111 of the manual:
If you’ve spent time organizing your images into a meaningful hierarchy on your
computer and you want to keep that organization, you can import a folder of images
as a project or drag it directly into the Projects panel. When you import a folder of
images or drag it into the Projects panel, the folder becomes a project and any
subfolders become albums within the project.
And
When importing folders of images into Aperture, carefully plan how you
want your images organized before you begin. The top-level folder containing images
becomes a project containing all the images in the subfolders as well. This means that
if you import a folder with thousands of images contained within its subfolders,
Aperture will create a project with thousands of images. You can import a maximum
of 10,000 master images into a project. If you have over 10,000 images to import into
Aperture, consider importing the subfolders individually instead. Each subfolder will
then become its own project.
Wouldn't this work?

Similar Messages

  • Applescript and Aperture - examples etc?

    I've programmed a lot, but not in Applescript. Does anybody know of a good, diverse collection of Applescripts for Aperture? The actions available in Automator don't handle what I need.
    (One script I want: I'm still trying to find a decent way to coordinate Aperture libraries on the big-screen iMac at home and the MBP I carry back and forth to work and into the field. It would help to have an automatic flag reminding me whether I had changed the library, or a project, on one machine, and therefore need to go through the long process of export/import. [I can remember, but I can also forget!])
    If I had some examples, I think I could figure out how to do this and other tasks. The Google hits I get focus on Automator, which doesn't have a wide enough variety of low-level actions to be very useful.
    Any pointers much appreciated.

    Oh well hey, of course I do -- a straight computer-to-computer Ethernet cable seems to provide about 11Mbps, at least ten times faster than Airport.
    That makes my question even more eager: Do you have (does anyone have) a sample command-line for using rsync to synchronize two Aperture libraries?
    As I understand it, the idea would be a quick way to update one library from the other -- NOT to meld competing sets of edits. Right? But it should be quick, because of rsync's ability to detect and transfer (inside the library's package) only changed items. Is that right?
    Is anybody using this?

  • How Do I Run AppleScripts In Aperture?

    I want to copy the Version Name to the Object Name field without having to manually type it for each image...
    Here is the script I am attempting to run:
    tell application "Aperture"
    set selectedImages to the selection
    repeat with i in selectedImages
    set tName to name of i
    set value of IPTC tag "ObjectName" of i to tName
    end repeat
    end tell
    (I copied the script from this thread: http://discussions.apple.com/thread.jspa?messageID=4458642.)
    I enabled the Script Menu to appear in the Finder Menu Bar, but that is as far as I have been able to get. I tried selecting a couple of images in Aperture, then selected Batch Change/IPTC Basic. I then selected the script in the Script Menu and clicked "OK." Nothing appears to get transferred in the two selected image files metadata. I also tried running the script without going to Batch Change and Still No Go...
    I think that my problem has to do with this step from the linked thread, but I am unclear as to what it means:
    4. IMPORTANT! You must use Batch Change to put a value into the Object Name tag (such as " "), until you do so the tag doesn't exist for those images and therefore cannot be altered.
    I have been through the Aperture Manual, Apple Aperture Digital Workflow book, etc. but I have been unable to figure out how to make this work.
    Message was edited by: MisterMojo
    Message was edited by: MisterMojo

    Since you have OS 10.5.8, do you also use an older Aperture version? Most people have latest OS and Aperture, so you might get more answers if we knew what your version of Aperture is...
    Well, I am running OS 10.6.2 and Aperture 2.1.4
    I found the script you posted to be non-functional. After digging around and some Googling, I came up with the following script that works for me. Keep in mind you are using a different OS version, but my point is, with some research and trial&err you should be able to do the same. I don't know anything about scripting, all I did was read into its meaning and substitute some terms. I basically stole the code and changed a couple of variables...
    tell application "Aperture"
    copy selection to theSel
    repeat with theImg in theSel
    tell theImg
    set MyVersionName to (get value of other tag "VersionName" of theImg)
    make new IPTC tag with properties {name:"ObjectName", value:MyVersionName}
    end tell
    end repeat
    end tell
    Notice how the script temporarily (?) creates a variable called MyVersionName, as a place to hold the value copied over from VersionName. Apparently scripts ignore the spaces in field names. It then uses the value from MyVersionName to fill in the ObjectName. The script is set to repeat for each image selected, one by one. I don't know why it's written like that, but it works.
    The above script works for both single and multiple selections of images. Pase it into AppleScript Editor, run it, save it in the Aperture folder which is a straight shot from the Save As... menu in the AppleScript Editor. (Users> {you}> Library> Scripts> Applications> Aperture)
    In the ASEditor's Preferences, make sure to check boxes so the scripts appear in the menu bar. Close the Editor. Back to Aperture, your (appropriately-named) script should show up from a drop-down at the menu bar under the AppleScript icon. Test it on a couple of inages. Mine works.

  • Print quality difference between iphoto and aperture...?

    when ordering books, is there a print quality difference between using iPhoto and Aperture? or are they sent to the same lab?
    it's possible i may have some setting wrong, but when i order a book using iphoto, i never really feel the quality is that great. it's good, i just feel it could be a lot better. the print quality sort of reminds me of newsprint, albeit high quality newsprint. similar sized prints made at home on my basic 3-in-1 printer look better.
    thanks...

    Previews are what you view on your display. When you import a photo into Aperture (and I'm pretty sure iPhoto as well), your computer automatically generates a preview for quick viewing. The original images are stored in your library, but it is the preview that you see.
    In Aperture, you are able to set the size and quality of these previews. When sharing photos between Aperture and iPhoto, the process is as follows:
    Let's say that your images are stored in Aperture, but you also want to be able to view them in iPhoto without taking up too much room on your hard drive. Essentially, if you were to import the originals into iPhoto as well, you would be storing two exact, yet separate copies of the same image on your hard drive. As you are aware, with large images (whether JPEG's, and especially RAW) this would put quite a tax on your storage capacity after not too long.
    So, you have your images in one or the other (in this case Aperture), but you want to play around with them in iPhoto. What you can do, is open iPhoto, go to the File menu and then select, Show Aperture Library. This will open a window with all of the contents of your Aperture Library. You can then drag any images you want into iPhoto . The only thing is, you are not dragging the original JPEG's, but rather, the previews of those images. If you have those previews set to a lower quality (again for capacity concerns), you will only have lower quality and lower detailed images in iPhoto. These images might not be ideal, or even suitable for printing high quality prints. The previews that you generate in Aperture though can be adjusted to be extremely high quality with no size limits.
    My thinking was that since you mentioned Aperture, it sounded like you had experience with working with it and with ordering a photo book through Aperture. I guess you were saying that you ordered via iPhoto, weren't happy with the quality and were wondering if Aperture created books were better.
    Anyway, if this is the case, I cannot answer that for you. I have never ordered a book through Aperture. If the quality of your images is good, you should be able to get a decent product no matter where you order it from. There is not doubt that the materials used and the print shop that does the work makes a difference, but if your images are good, you should still get a decent product through iPhoto. Perhaps iPhoto isn't the way to go though if you have had poor experiences with them.
    If you haven't used Aperture yet, I would highly recommend it though aside from the photo book aspect of this thread. It is a stellar product.
    I hope this helps.
    Message was edited by: macorin

  • I recently upgraded to Yosemite 10.10.2 and Aperture 2.1.4 will no longer open.  I cannot access my photos and I don't want to pay for latest version of Aperture since this application is no longer going to be supported.  How can I get my pictures?

    I recently upgraded to Yosemite 10.10.2 and Aperture 2.1.4 will no longer open.  I cannot access my photos and I don't want to pay for latest version of Aperture since this application is no longer going to be supported.  How can I get my pictures?

    If you want just the originals, then you can go into the Aperture library (right click on it and do "show package contents"). Inside is a directory called "Masters" and you can find the original files in a bunch of subfolders.
    But... you'll lose all adjustments, keywords, and other information, and just have the files as they were imported originally from the cameras.
    Easiest is probably to buy Aperture and update everything, and then migrate to the Photos application down the road if that's what you want. Aperture 3.0 came out in 2010 (five years ago!) so it's not like you've upgraded in a while

  • Need help with applescript and Xcode 4.3.2

    I'm trying to write my first application that will involve a GUI. I can code applescript using script editor with a bit of effort, but I'm want to have users input more than one piece of information in the pop up. So, I download xcode, create my first applescript cocoa project go to MainMenu.xib and add a bunch of labels, text fields and buttons. Looks fairly nice... Go to start it and... nothing (well the window pops up, but it doesn't do anything). Unfortunately, I haven't figured out how to link the window to the applescript... So, how do I...
    * Have the applescript prepopulate data in the text fields and pulldowns
    * Once the user changes the data in the fields tell the applescript
    * Tell the window to close and pass the control back to the applescript once either the cancel or submit button is pressed.
    More detailed...
    * What's an outlet and how do I use it here? Which of the 18 outlet(s) do i use for this?
    * What's a property (referenced on one of the web pages I saw around applescript and cocoa) and do I need them here?
    Looking at the documentation with xcode, there isn't a lot about xcode and applescipt. Looking at the web, the top links are a few years old. So, links to good relevent documentation would be very nice as well as direct answers to the questions
    Thanks,
    Scott

    I'm not sure why you are closing it, but the NSApplication class is what keeps track of the windows.  If you don't want to connect the window to an outlet from the interface editor, you can use something like
    set theWindow to current application's NSApplication's sharedApplication's mainWindow()
    ...and from there you can use whatever NSWindow methods, for example
    theWindow's performClose_(me)

  • After upgrading to Yosemite and Aperture 3.6 all the library icons are shown plain. Does anyone has a hint?

    After upgrading to Yosemite and Aperture 3.6 all the library icons are shown plain. Does anyone has a hint?

    If it is still slow after removing Symantec, you may need a RAM upgrade. Yosemite can run very poorly on older machines with only 4 GB RAM.

  • IPhone - how to sync with iPhoto and Aperture at the same time ???

    I'm having a really hard time with syncing my photos - I'm using iPhoto and Aperture on my Mac. When I launch iTunes and start managing my iPhone, it seems like I should be able to sync photos from a variety of sources all at once (iPhoto, Aperture, other folders).
    However, whichever option I select in the photos drop-down becomes the only libraries that are available to sync. What I mean is that if I select some of the Albums in my iPhoto list and sync those, when I later drill down to Aperture and select albums from there and perform a sync - then the previously synced/loaded albums and photos from iPhoto are automatically removed from the iPhone.
    Why can't I sync between multiple photo albums / sources at the same time? This is incredibly annoying.

    Here's how I solved this problem:
    In Aperture, select File -> Import -> iPhoto Library
    Then under the "Store Files" dropdown, be sure "In their Original Location" is select. This will allow Aperture to see your iPhoto library, but it will be managed by reference rather than phyisically imported.
    Now, in iTunes, select Aperture as the application from which you want to synch photos, and select the option to synch specific albums.
    You should be able to see the names of albums in iPhoto as well as those created in Aperture.

  • How to remove duplicates in iphoto 7.1.5 and aperture 2.1.4 on same hard drive

    How to remove duplicates from iPhoto 7.1.5 and Aperture 2.1.4 on same hard drive?

    For iPhoto duplicate annihalitor is a good solution
    For Aperture it is best to ask in the aperture forum
    LN

  • What's the best way to merge, restore or reconstruct iPhoto and Aperture libraries to resolve images that are not found/offline?

    Hey there, Apple Support Communities.
    To start, I'm working on a MBP Retina 15" with a 2.3GHz i7 processor and 16 GB of RAM.  10GB free on a 256GB SS HD.  Attached are two external HDs - one 1TB Western Digital portable drive from 2011, one 2TB Porsche LaCie non-portable drive from 2013; both connected via USB.  All photo libraries in question are on the external drives.
    I have Aperture 3.5.1 and iPhoto 9.5.1.  I prefer to work in Aperture.
    The Issue(s)
    Over the years, I have accumulated a number of iPhoto libraries and Aperture libraries.  At one point, I thought my WD drive was dying so I purchased the LaCie and copied all libraries over the the LaCie drive.  (Turns out, there's probably an issue with my USB port reading drives, because I can once again see the WD drive and occasionally I can't see the LaCie drive.)
    So now I have old version of some libraries on the WD drive, and new versions on the LaCie drive.
    When I was moving things, I ran the software Gemini to de-dupe my iPhoto libraries.  Not sure what effect that may have had on my issues.
    In my main Aperture library and in some iPhoto libraries, I get the image-not-found badge or exclamation point.  I've dug through the hidden Masters folders in various libraries to find the original image.  In some cases, I have been able to find the original image, sometimes in a different version of the iPhoto library.
    My Question(s)
    1.  For Aperture libraries that have missing originals, is there some magical way to find them, or have they just disappeared into the oblivion?
    2.  For iPhoto libraries that have missing originals and I have found the original in another iPhoto library, what is the best way to proceed?
    3.  Are there quirks to merging iPhoto and Aperture libraries (by using the Import->Library) feature that I should be aware of?
    TL;DR: Too many iPhoto and Aperture libraries, and not all the original pictures can be found by the libraries anymore, though some originals still do exist in other libraries.  Steps/process to fix?
    Thank you!  Let me know if you need add'l info to offer advice.
    With appreciation,
    Christie

    That will not be an easy task, Christie.
    I am afraid, your cleaning session with Gemini may have actually removed originals. I have never used this duplicate finder tool, but other posters here reported problems. Gemini seems to replace duplicate original files in photo libraries by links, and this way, deleting images can cause the references for other images to break. And Aperture does not follow symbolic links - at least, I could never get it to find original files this way, when I experimented with this.
    1.  For Aperture libraries that have missing originals, is there some magical way to find them, or have they just disappeared into the oblivion?
    You have to find the originals yourself. If you can find them or restore them from a backup, Aperture can reconnect them. The reconnect panel can show you, where the originals are supposed to be, so youcan see the filename and make a Spotlight search.
    For iPhoto libraries that have missing originals and I have found the original in another iPhoto library, what is the best way to proceed?
    Make a copy of the missing original you found in a folder outside the iPhoto library. You can either open the iPhoto library in Aperture and use "File > Locate Referenced file" to reconnect the originals, or simply reimport them. Then Lift&Stamp all adjustments and metadata to the reimported version.
    See this manual page on how to reconnect originals:  Aperture 3 User Manual: Working with Referenced Images  (the paragraph:  Reconnecting Missing or Offline Referenced Images)
    Are there quirks to merging iPhoto and Aperture libraries (by using the Import->Library) feature that I should be aware of?
    References images will stay referenced, managed will remain managed. You need to unhide all hidden photos in iPhoto - this cannot be done in Aperture.
    and not all the original pictures can be found by the libraries anymore, though some originals still do exist in other libraries.  Steps/process to fix?
    That is probably due to Gemini's replacing duplicate originals by links, and your best cause of action is to fix this before merging the libraries. Reconnecting can be done for your iPhoto libraries in Aperture.

  • External disk for Time Machine and Aperture Vaults

    I'm planning on buying an external HD for backups with Time Machine and I will also be using it for Vaults in Aperture.
    Should I partition the disk into two volumes, one for each, or will TM and Aperture co-exist quite happily on the same volume?
    I'd rather use a single volume as, in my experience, partitioning a disk always results in one volume filling up long before the other, however integrity of the backups is the most important requirement.

    I strongly agree with V.K.
    The other big reason to partition is, as you say, one volume will fill up before the other.
    That's exactly how TM is designed to work -- fill up whatever space you allocate to it. Unlike traditional archive-type backup systems, it manages it's space and deletes backups automatically. As you probably know, it keeps it's hourly backups for 24 hours, then deletes them, except the first of the day, which becomes a daily backup and is kept for a month. Similarly, after a month, one of those daily backups becomes a weekly, and the others are deleted. But the weeklies are kept as long as there's room. Unless something goes wrong, you never have to do a thing.
    So, if you have other data in that same partition, TM will, eventually, fill up the remaining space, limiting the space available to Aperture.

  • HT201070 I currently use OS 10.6.8 and Aperture 3, and just got a Nikon D600. It seems the the RAW Compatibility updates (4.01) are for use only with OS 10.7.5 or later, is that right? Do I need to update my whole OS to use this camera? Thank you!

    I currently use OS 10.6.8 and Aperture 3, and just got a Nikon D600. It seems the the RAW Compatibility updates (4.01) are for use only with OS 10.7.5 or later, is that right? Do I need to update my whole OS to use this camera? Thank you!

    Thanks to Bobthefisherman & Turbostar.  Turns out I've got a corrupted disk (which I found out via "verify disk" on Disk Utility First Aid.  Previously, I never thought to verify disk -- only to repair permissions -- so I never knew my HD had been corrupted.
    Wasn't able to do a clean install of OSX10.6 because my SuperDrive only sporadically will load discs, so I am taking it to the Apple Store to see if they can do a clean install, and depending upon costs, get the Superdrive replaced. 
    The HD wasn't partioned by the way.  And I did have just over 40GB of contiguous space. 
    Thanks again.

  • Best Practice for Installation of Both Leopard and Aperture 2 upgrade.

    I've finally bought the bullet and purchased both Leopard and Aperture 2.0 upgrade. I've tried searching for a best practice to install both, but haven't been able to find one--only trouble shooting type stuff. Any suggestions, things to avoid, etc would be greatly appreciated. Even a gentle shove to a prior thread would be helpful. . . .
    Thanks for pointing me in the right direction.
    Steve

    steve hutchcraft wrote:
    I've tried searching for a best practice to install...
    • First be really sure that all your apps work well with 10.5.3 before you leave 10.4.11, which is extraordinarily stable.
    • Immediately prior to and immediately after every installation of any kind (OS, apps, drivers, etc.) got to Utilities/Disk Utility/First Aid, and Repair Permissions. Repairing Permissions is not a problem fixer per se, but anecdotally many folks with heavy graphics installations (including me) who follow that protocol seem to maintain better operating environments under the challenge of heavy graphics than folks who do not diligently do so.
    • When you upgrade the OS do a "clean install."
    • RAM is relatively inexpensive and 2 GB RAM is limiting. I recommend adding 4x2 GB RAM. One good source is OWC: http://www.owcomputing.com/.
    • After you do your installations check for updates to the OS and/or Aperture, and perform any upgrades. Remember to Repair Permissions immediately prior to and immediately after the upgrade installations.
    • If you are looking for further Aperture performance improvement, consider the Radeon HD 3870. Reviews at http://www.barefeats.com/harper16.html and at http://www.barefeats.com/harper17.html.
    Good luck!
    -Allen Wicks

  • I am unable to change location for editing photos.  I tried the advanced drop down menu in iPhoto and have 2 locations for editing-iphoto and aperture.  I want to add photoshop.  Can anyone help? Thanks.

    i cannot change editing location from aperture to photoshop in iphoto.  i followed directions to advanced tab in iphoto and have 2 choices for editing photos-iphoto and aperture.  any suggestions on how to change the sites?  thanks.

    Not sure why you would have Aperture there as it's not an editor.
    To change, just select Aperture again, and this will give you the dialogue to change the choice.
    Regards
    TD

  • Applescript and automator

    I have studyed html for 3 days and wordpress for 3 days , word , excel for 5 days, and llustrator and photoshop 13 yeas ago for 6 months.
    and still now its so hard to understand some how.
    but I am in need of understading now with the printed documents from my computer.
    and I wonder , so there are many defferent way to communicate with anyone out side of the world, right?
    like I know email , fax, facetime,
    but there are other way now I think because of the documents I found.
    and also with applescript and automator can do anything possible like even the child can click one and start conecting etc..
    I have the copy from its ,
    does anyone have time to explain me what it is?
    It's not that of teenager who doesn't want paretns to know or else,
    but I am quite serious for my situations.
    Please Help !
    Mac OS snow leopard to lion to moutain lion,,,,,
    but I don't know when it started yet.

    Using JavaScript to script System Events wouldn't be any better, since it uses the same Apple Events mechanism (how well it uses it is another topic).  To hold down a key you would need to use something that has access to the deeper system APIs, most likely using Xcode.
    And yes, your code snippet will press the arrow key 5 times (I am guessing that the missing space in key code is a typo).  You can place the cursor in a bunch of text in another application such as TextEdit, and use your script to activate it before performing the key codes to get a better idea of what is happening (trying to reposition the cursor in the Script Editor will reveal a bug with the delay command).

Maybe you are looking for

  • Why is my iPhone 4 screen not displaying properly?

    Hello everyone, I have had my iPhone 4 now for a few months and it has worked fine until today. The screen suddenly displayed multi-coloured moving lines and coloured blocks randomly in succession, before turning bright green. I plugged it into my co

  • Moving iTunes library to external HD - all messed up

    My C: HD ran out of space and my iTunes library was the biggest part so I decided to move it to an external HD. For reasons too complex to go into I have several. I followed the instructions in the "Help" feature of iTunes before I learned that there

  • Problem in InternalFrame default control icons when minimize, restore

    Behaviour of Internal frame control icons are stange and inconsistent. When I minimized, maximized or restore the icon are changes for minimize, maximize and restore state. Is it a bug in this class or is there any way to control it. If not how can I

  • Pick release based on supply

    I want the pick release of items to happen not on the basis of how much stock is actually present in the warehouse, but on the basis of supply to that warehouse. I mean, my client wants that the line should not be backordered when he does a pick rele

  • OEM is not available

    Hi, I have installed 10g.I chose Enterprise Edition method while installation.But Enterprise manager configuration got failed. So again i tried with custom installation, this time it is showing that Enterprise manager is installed but still I'm not a