Grumpy4u

Q: Is there a way to do batch changes in Photos (like we could in iPhoto)?

I made heavy use of the Batch change command in iPhoto.

Now that I'm in Photos, how can I get the same results?

Specifically the Batch change of title....

Mac Pro, OS X Yosemite (10.10.3)

Posted on Apr 11, 2015 9:47 PM

Close

Q: Is there a way to do batch changes in Photos (like we could in iPhoto)?

  • All replies
  • Helpful answers

first Previous Page 3 of 6 last Next
  • by R C-R,

    R C-R R C-R Apr 17, 2015 11:48 AM in response to Grumpy4u
    Level 6 (17,660 points)
    Apr 17, 2015 11:48 AM in response to Grumpy4u

    .

  • by Grumpy4u,

    Grumpy4u Grumpy4u Apr 17, 2015 12:29 PM in response to Old Toad
    Level 1 (4 points)
    iLife
    Apr 17, 2015 12:29 PM in response to Old Toad

    It was the System Photo Library already.  It was created by the conversion process that did away with iPhoto.

  • by Old Toad,

    Old Toad Old Toad Apr 17, 2015 3:30 PM in response to Grumpy4u
    Level 10 (141,090 points)
    Mac OS X
    Apr 17, 2015 3:30 PM in response to Grumpy4u

    I believe my last post was intended for another topic. 

  • by Jay Deitch,

    Jay Deitch Jay Deitch Apr 18, 2015 5:28 AM in response to léonie
    Level 2 (215 points)
    Mac OS X
    Apr 18, 2015 5:28 AM in response to léonie

    I get the error message "The action "RunAppleScript" encountered an error."  The error message and script are attached.  Any ideas?

     

    Thanks,

    Jay

     

    Screen Shot 2015-04-18 at 7.23.49 AM.png

     

    Screen Shot 2015-04-18 at 7.24.22 AM.png

  • by R C-R,

    R C-R R C-R Apr 18, 2015 5:41 AM in response to R C-R
    Level 6 (17,660 points)
    Apr 18, 2015 5:41 AM in response to R C-R

    .

  • by R C-R,

    R C-R R C-R Apr 18, 2015 5:44 AM in response to Jay Deitch
    Level 6 (17,660 points)
    Apr 18, 2015 5:44 AM in response to Jay Deitch

    Why do you have an "Ask for Text" Automator action preceding the "Run Applescript" one?

  • by Jay Deitch,

    Jay Deitch Jay Deitch Apr 18, 2015 6:11 AM in response to R C-R
    Level 2 (215 points)
    Mac OS X
    Apr 18, 2015 6:11 AM in response to R C-R

    That's the way it was in léonie's post (page 1 of this thread).  I don't know much about AppleScript, but it looks like that is how it gets the text for the titles.

     

    -Jay

  • by Sjoerd,

    Sjoerd Sjoerd Apr 18, 2015 6:42 AM in response to Jay Deitch
    Level 1 (0 points)
    Apr 18, 2015 6:42 AM in response to Jay Deitch

    I have scanned through this thread and bottom line is Photos has taken a step back in functionality and can not do what iPhoto did. Running a script to make changes is a solution but a ridiculous amount of work compared to what it used to be in iPhoto.

  • by Jay Deitch,

    Jay Deitch Jay Deitch Apr 18, 2015 7:21 AM in response to Jay Deitch
    Level 2 (215 points)
    Mac OS X
    Apr 18, 2015 7:21 AM in response to Jay Deitch

    A little more information...

     

    If I run the script from Automator (clicking on the triangle), I get the following message.  Note that the error appears to be at the line "set the name to input."

     

    Jay

     

     

    Screen Shot 2015-04-18 at 9.18.04 AM.png

  • by R C-R,

    R C-R R C-R Apr 18, 2015 7:28 AM in response to Jay Deitch
    Level 6 (17,660 points)
    Apr 18, 2015 7:28 AM in response to Jay Deitch

    Jay Deitch wrote:

    That's the way it was in léonie's post (page 1 of this thread).  I don't know much about AppleScript, but it looks like that is how it gets the text for the titles.

    You are correct about that. Sorry, I confused the batch change script with léonie's other one that sets titles to filenames. (Need more coffee, I guess.)

  • by Old Toad,

    Old Toad Old Toad Apr 18, 2015 8:48 AM in response to Jay Deitch
    Level 10 (141,090 points)
    Mac OS X
    Apr 18, 2015 8:48 AM in response to Jay Deitch

    Here's the script I use to change the title on multiple photos while adding a sequential number at the end:

     

    on run {input, parameters}

      -- batch chnage the title to the input

      tell application "Photos"

      activate

      set counter to 1

      set imageSel to (get selection) -- get selected images

      if imageSel is {} then

      error "Please select some images."

      else

      repeat with im in imageSel

      tell im

      set the name to input & "_" & counter as text

      -- set the title to the input plus number

      set counter to counter + 1

      end tell

      end repeat

      end if

      end tell

      return input

    end run

    This script is courtesy of léonie.  It gives your Title-1, Title-2, Title-3, etc.  Am trying to modify it so it will give us Title-01, Title-02, etc. so the sort better when in the Finder. 

  • by Jay Deitch,

    Jay Deitch Jay Deitch Apr 18, 2015 9:06 AM in response to Old Toad
    Level 2 (215 points)
    Mac OS X
    Apr 18, 2015 9:06 AM in response to Old Toad

    Thanks, but I get the same error message as with the original script.  I must be missing something...

     

    Screen Shot 2015-04-18 at 11.03.55 AM.png

  • by Old Toad,

    Old Toad Old Toad Apr 18, 2015 9:11 AM in response to R C-R
    Level 10 (141,090 points)
    Mac OS X
    Apr 18, 2015 9:11 AM in response to R C-R
    Why do you have an "Ask for Text" Automator action preceding the "Run Applescript" one?

    That brings up a window where you can enter the Title you want to be assigned to the photos you've selected.

    Photos001.jpg

  • by Grumpy4u,

    Grumpy4u Grumpy4u Apr 18, 2015 12:03 PM in response to Old Toad
    Level 1 (4 points)
    iLife
    Apr 18, 2015 12:03 PM in response to Old Toad

    I agree the script should work.  But there is a problem.

    Look at my posts above.  Mine dies on the real library, and only works on a test library I just created.

    So that means the problem is not the script, but the library....

    And it's not just for me. Jay seems to have the same problem.

    I checked out the file protections in a terminal window.  My system library (with the problem) and my test library have same protection bits:

     

    drwxr-xr-x@ 33 dwills  staff 1122 Apr 17 18:29 Photos Library.photoslibrary
    drwxr-xr-x@ 11 dwills  staff  374 Apr 16 20:51 Test Photos Library.photoslibrary

     

    ACL settings? where/how do I check?

  • by Grumpy4u,

    Grumpy4u Grumpy4u Apr 18, 2015 12:10 PM in response to Grumpy4u
    Level 1 (4 points)
    iLife
    Apr 18, 2015 12:10 PM in response to Grumpy4u

    So... I ran it again, and here is the error log:

     

    4/18/15 12:07:04.165 PM WindowServer[169]: disable_update_timeout: UI updates were forcibly disabled by application "Photos" for over 1.00 seconds. Server has re-enabled them.

    4/18/15 12:07:05.551 PM WindowServer[169]: common_reenable_update: UI updates were finally reenabled by application "Photos" after 2.39 seconds (server forcibly re-enabled them after 1.00 seconds)

    4/18/15 12:07:05.585 PM cloudphotosd[487]: New connection request from 943

    4/18/15 12:07:08.633 PM Photos[943]: Received changes notification alert: <LiModelChangeGroup: 0x600000e7d880>  alert flags : Replay Complete

    4/18/15 12:07:55.014 PM Photos[943]: An exception was thrown during execution of an NSScriptCommand...

    4/18/15 12:07:55.014 PM Photos[943]: *** -[__NSArrayM objectAtIndex:]: index 32260 beyond bounds for empty array

     

    This script works fine on the test photo library... What's going on?

first Previous Page 3 of 6 last Next