Script to rename multiple events in iPhoto.

Hi.
I use iPhoto 9.6 on Yosemite, MacBook pro 2011. . I have a bunch of unnamed events that I'd like to export to a backup disk. When I do so, the events are named according to dates in the format "July 28, 2015", for example. However, I'd like to use instead the format "2015-07-28", but I'd like to avoid having to rename the individual events manually. (I know how to use the batch function to rename the photo titles individually in this manner, but that is not what I want.)
Can anybody offer a solution to this? Eg using Automator/AppleScript or something else.
Thx.
S

I'm still quite new to this, but I think this would do the trick based on what you've supplied, note the -whatif so it doesn't screw up if the output isn't quite what you want.
[xml]$fileinfo = Get-Content -Path .\fileinfo.xml
foreach ($doc in $fileinfo.ABC_TitleDocument) {
$filepath = $doc.ABC_TitleDocumentProperties.ContentElements.ContentTransfer.ExternalRef -creplace "file://",""
$fileext = (Get-Item -Path $filepath).Extension
$newfilepath = "$($doc.ABC_TitleDocumentProperties.DocumentTitle)_$($doc.ABC_TitleDocumentProperties.ABC_DocumentID)$fileext"
Rename-Item -Path $filepath -NewName $newfilepath -WhatIf

Similar Messages

  • Why can I not rename an event in iphoto?  It keeps reverting to "untitled event!"

    Every time I upload photos to iphoto and it creates a new event, I am somehow unable to rename that event.  I double click and delete the default label, "untitled event" and even as I type the new name it will immediately revert to say "untitled event."  This sometimes happens even at the same time as I type, like the computer and my own typing are fighting against each other.

    Try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Lion and Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder
    3 - reboot, launch iPhoto and try renaming again.
    NOTE:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    OT

  • Can't rename/name events in iPhoto

    Hi all, please help if you can
    I'm a proficient mac user and I installed iPhoto 08 and have never been able to change or name events in iPhoto. I called mac support they don't know. I have reinstalled the software, tried starting a new library, I have updated to latest (yesterday's) update.
    I also tried moving my library to the root so as to eliminate any permission errors.
    I thought it was a bug but mac support guy confirmed it can be done.
    Anyone have any ideas?
    Hayley

    Hayley
    Make sure that the HelveticaNeue font is installed and active on your computer. Also, have a read of this: it's written for the iMac, but the trick will work equally on your MBP
    http://docs.info.apple.com/article.html?artnum=306305
    Regards
    TD

  • Script to rename multiple files

    I have about 30k image files on my pc in 1 dir C:\TEMP1\ for example. These files all have to be renamed to a specific unique name. Aside from these files I also have an xml file that contains properties for these files, document title, document id for example.
    The xml file also contains the path and file name of the image files. I need a script that can read the xml file, find the tag <ExternalRef> and then go out to C:\TEMP1\ and rename that file according to other xml tags such as document title and document
    id. I have 1 xml file for all 30k images. I dont have any scripting experience and was looking for some help.
    This is what the xml file looks like: So I need to find <ExternalRef>file://C:\TEMP1\000E57BC.TIF</ExternalRef> and rename that file to <DocumentTitle>Probate Order-SO</DocumentTitle> _<ABC_DocumentID>APO24L977</ABC_DocumentID>...etc
    - <ABC_TitleDocument>
    - <ABC_TitleDocumentProperties>
      <ObjectType>1</ObjectType>
      <Creator>Administrator</Creator>
      <DateCreated>2013-10-07T16:45:27.237Z</DateCreated>
      <LastModifier>Administrator</LastModifier>
      <DateLastModified>2013-10-07T16:45:27.237Z</DateLastModified>
      <Id>6132c424-007b-4ef9-9c07-2b8171b83357</Id>
      <Name>Probate Order-SO</Name>
      <SecurityPolicy />
      <SecurityParent />
      <IsFrozenVersion>0</IsFrozenVersion>
    - <VersionSeries>
    - <ObjectRef>
      <ObjectId>1be7c26c-89d2-40bf-afeb-a081714e470a7</ObjectId>
      <ClassId>01a3a8c8-7aec-11d1-a31b-a0020af9fbb1c</ClassId>
      </ObjectRef>
      </VersionSeries>
      <MajorVersionNumber>1</MajorVersionNumber>
      <MinorVersionNumber>0</MinorVersionNumber>
      <VersionStatus>1</VersionStatus>
    - <ContentElements>
    - <ContentTransfer>
      <ObjectType>1038</ObjectType>
      <ContentType>image/tiff</ContentType>
      <RetrievalName>000E57ABC.TIF</RetrievalName>
      <ExternalRef>file://C:\TEMP1\000E57BC.TIF</ExternalRef>
      </ContentTransfer>
      </ContentElements>
      <MimeType>image/tiff</MimeType>
      <DocumentLifecyclePolicy />
      <DocumentTitle>Probate Order-SO</DocumentTitle>
      <SourceDocument />
      <OwnerDocument />
      <PublicationInfo />
      <IgnoreRedirect />
      <EntryTemplateObjectStoreName />
      <EntryTemplateLaunchedWorkflowNumber />
      <EntryTemplateId />
      <ABC_Area>P</ABC_Area>
      <ABC_DocumentCategory>Title</ABC_DocumentCategory>
      <ABC_DocumentClass>11</ABC_DocumentClass>
      <ABC_DocumentID>APO24L977</ABC_DocumentID>
      <ABC_LandArea>151</ABC_LandArea>
      <ABC_ScanDate>2013-10-07T05:00:00Z</ABC_ScanDate>
      <ABC_ScanOperator>Administrator</ABC_ScanOperator>
      <ABC_ScanWorkstationID>SCN04:Sess 3</ABC_ScanWorkstationID>
      <ABC_Agency>03</ABC_Agency>
      <ABC_DocumentType>ABC</ABC_DocumentType>
      <ABC_LTRO>P</ABC_LTRO>
      <ABC_KofaxID>{DA701CAD-5CB2-444e-9ABBB-47CF0B2FD801}</ABC_KofaxID>
      <ABC_DocumentCount>11</ABC_DocumentCount>
      <ABC_Recordable>1</ABC_Recordable>
      <ABC_BatchType>FOLLOW-UP</ABC_BatchType>
      <ABC_EStamped>0</ABC_EStamped>
      <ABC_RecordationState>PENDING</ABC_RecordationState>
      <ABC_FileName />
      <ABC_FolderName />
      <ABC_BatchName>10/7/2013 8:25:26 AM</ABC_BatchName>
      <ABC_RecordDate>11/19/2004</ABC_RecordDate>
      <ABC_DocumentDate>1977-03-30T05:00:00Z</ABC_DocumentDate>
      <ABC_ConveyanceType>SO</ABC_ConveyanceType>
      </ABC_TitleDocumentProperties>
      </ABC_TitleDocument>

    I'm still quite new to this, but I think this would do the trick based on what you've supplied, note the -whatif so it doesn't screw up if the output isn't quite what you want.
    [xml]$fileinfo = Get-Content -Path .\fileinfo.xml
    foreach ($doc in $fileinfo.ABC_TitleDocument) {
    $filepath = $doc.ABC_TitleDocumentProperties.ContentElements.ContentTransfer.ExternalRef -creplace "file://",""
    $fileext = (Get-Item -Path $filepath).Extension
    $newfilepath = "$($doc.ABC_TitleDocumentProperties.DocumentTitle)_$($doc.ABC_TitleDocumentProperties.ABC_DocumentID)$fileext"
    Rename-Item -Path $filepath -NewName $newfilepath -WhatIf

  • Can't rename any events in iphoto 8.0

    I can access the titles but it won't let me type anything.

    See this thread: Can't edit 'Event name' in iPhoto
    . It discusses several ways to do that.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Is there a way to create a multiple event screen saver from iPhoto events?

    Is there a way to create a multiple event screen saver from photos in iphoto?  I can create a single event screen saver, but don't know if it is possible to create a screen saver with more than one event.

    Drag the events you want into an album and have the screen saver run from the album.

  • Unable to Rename Events in iPhoto

    I have tried everything to rename events in iPhoto, nothing works. When you click on the event name, it switches to what looks to be an "editable name" view as you would expect. However, typing does not change the text, and I am unable to select the existing text with my mouse. I assumed this would be a bug quickly fixed, but I downloaded the latest iPhoto update (from 8/29/2007), and this bug is not fixed.
    I will try to add a screenshot of the problem later when I am back at home on the iMac.

    The fonts are likely corrupted.
    Follow the steps in this Apple tech article-- iMac (Mid 2007): Some fonts may appear incorrectly rendered

  • IPhoto book from multiple events.

    How do you create an iPhoto book from multiple events/albums? I start making a new book based on an album, but then want to add pictures from another event and another album. Can this be done and how?

    Sure - once you create the book it is totally disconnected form teh source - to add simply drag photos from any source to the book project in the source pane on the left
    LN

  • Merging events in iPhoto with pictures named the same in each event? Will I lose the photo or will iPhoto rename the duplicate names?

    I am trying to merge 2 events in iPhoto, but i notice that in the first event my photos are named by my camera as DSC_001, DSC_002, etc.  But the same is true of the photos in the second event DSC_001, DSC_002, etc.  If I merge these 2 events will I lose pictures that have the same photo/file name? Or will iPhoto change the name of DSC_001 from the second event when it merges event 1 & event 2?  I am hesitant, I don't want to lose half of my pictures.

    With iPhoto 9 and later when merging events the files stay in their original folder inside the library so there's no problem with files with the same file name.  It's when you export same named files to the same folder on the hard drive that you may run into a problem.

  • VB Scripting to monitor application event log based on specific words.

    Hi All,
    I Have written, vb script to monitor application event log based on specific word in the message. when I have included same script in monitor, after running this script at specific time once in day, I am getting run time error in the server, where it
    supposed to run, could you please check the command where I have highlighted in below script.
    Dim VarSize
    Dim objMOMAPI
    Dim objBag
    Set objMOMAPI = CreateObject("MOM.ScriptAPI")
    Set objBag = objMOMAPI.CreateTypedPropertyBag(StateDataType)
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Const CONVERT_TO_LOCAL_TIME = True
    Set dtmStartDate = CreateObject("WbemScripting.SWbemDateTime")
    dtmStartDate.SetVarDate dateadd("n", -1440, now)' CONVERT_TO_LOCAL_TIME
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" _
     & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set colLoggedEvents = objWMIService.ExecQuery _
     ("SELECT * FROM Win32_NTLogEvent WHERE Logfile = 'Application' AND " _
     & "EventCode = '100'")
    For Each objEvent in colLoggedEvents
    If InStr(LCase(colLoggedEvents.Message), "Message :Application A3 has been successfully processed for today") Then
    X= "Success"
    end if
    Next
    if X="Success" then
    call objBag.AddValue("State","GOOD")
    call objMOMAPI.Return(objBag)
    wscript.quit()
    Else
    call objBag.AddValue("State","BAD")
    call objMOMAPI.Return(objBag)
    wscript.quit()
    End If

    By programming standards since as long as I can remember the use of the value of a variable to detect its Boolean state has been used.
    Cast your mind back to strongly typed languages, e.g. Pascal.
    I'll cast back to the very early days of the "C" language where all variables could be treated as "bool" without a cast. The is no more strongly type language than "C". "C" practically invented the standards for all modern languages. 
    When I was writin machine language we also used zero as false but many machines only  tested the high bit for truthieness.  The HP machines and Intel allowed a test to aggregate to the sign bit.  Adding that flag to the test alloed tru for
    an numeric value that was non-zero.  A boool test was also used for a negative e switch.  If you study micro language implementation you will find that this hardware design and the companion compiler design is ... well... by design.  It is a
    way of improving the completeness and usefulness of an instruction set.
    Other langauges may require further decoration due to some mistaken desire to be better than perfect. That is like trying to change number theory by renaming addition to be "gunking" and forcing everyone to use multiplication when adding the same number
    more than once.  A Boolean test os a test of the flag bit with to without aggregation.    Even if we test a bit in a word we still mask and aggregate.  It is always the most primitive operation.  It is also the most useful
    operation when you finally realize that it is like an identity in math.
    Use the language features that are designed in. They can help to make code much more flexible and logical.
    By the way, Pascal also treats everything as Boolean when asked to.
    ¯\_(ツ)_/¯

  • Multiple Libraries in iPhoto

    I have a critical need to have multiple libraries in iPhoto primarily to reduce the total amount of photos in one file. These have been created and put in a desktop folder for easy access. I am sure a professional photographer would need multiple libraries, primarily one for each photo session then when have the subjects in for a viewing would need FAST access to the individual libraries and using preferences is by no means quick. Now, there are two primary problems that have come up though the first would be eliminated after the photos have been categorized into their assorted libraries.
    First: How to move photos to the other files.
    Second: How to open the file wanted without having to go through the rigamarole of changing the preferences every time. In other words, why can't I double click the library I want and have it automatically switch to that file as primary?
    Sparkgapper

    First: How to move photos to the other files.
    Easiest way: use iPhoto Library Manager
    How to open the file wanted without having to go through the rigamarole of changing the preferences every time. In other words, why can't I double click the library I want and have it automatically switch to that file as primary?
    You can.
    Or Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    There's been no need to edit the preferences since iPhoto 6.
    I am sure a professional photographer would need multiple libraries,
    A professional wouldn't be using an app like iPhoto. A Pro would be using an app like Aperture, with - perhaps - one Project per shoot. In fact, you can do that with iPhoto and one Event per shoot.
    Regards
    TD

  • Splitting photos without creating multiple events.

    Is this possible? I have one event in iPhoto which covers three days. I would like all my photos from this event together but I want each day sectioned off in the same event, not split into multiple events. Highlighting the photos from each day and clicking "split" puts the days all in separate events where as I want them sectioned off, but together in ONE event. I hope I am making myself clear.
    My aim is to have it looking something like this:
    Event:
    Day 1
    Day 2
    Day 3
    NOT
    Event: Day 1
    Event: Day 2
    Event: Day 3

    tensocfan
    Now with Events as you cannot have Nested Events, but it's perfectly possible with Albums:
    File -> New Folder: Name it 3 Day Event
    Then three Albums (you can even make them smart Albums: Date is Whatever)
    And drag the Albums to the Folder.
    Regards
    TD

  • Having issue with Syncing Events from Iphoto to Apple Tv

    All of a sudden I have multiple events of the same title but different amount of photos when i try to sync my photos to apple tv.  Iphoto is fine, nothing is changed but when I go over to itunes to sync I see like 10 different Events with same name. EVERYTHING is multiplied but there is no rhyme or reason to it.  !!!!!  Apple has done some system/app updates but they are so frequent that I don't ever pay attention to what is being updated I just click to allow the process.  I believe this occurred after one of the updates,  I have 2 Apple TV's AT1 and AT2.  AT2 is a nightmare to begin with because it was constantly getting kicked off the network but now that isn't the issue.  Now it isn't showing current syncs which doesn't make sense because I thought this one streamed everything directly.  Either way---APPLE TV is having issues and I can't get my EVENTS straightened out,  HELP!!!!!

    I've also noticed this started happening... Its something with iTunes, because both my old Apple TV's and my iPhone and iPad all show multiple events for the same event... Lots of them! So many its hard to tell what to sync now. When I click on any of my devices photos tab in iTunes they are all exactly the same. Not sure how to fix it...

  • Photos are being added to my iPad, without choosing any events in iPhoto or having them sync with iCloud

    Photos are being added to my iPad, without choosing any events in iPhoto or having them sync with iCloud
    I just upgraded to IOS6, and now my ipad is full of pictures I did not choose to sync.
    I cannot delete them without deleting them from all sources.
    Actually, the message is when I go to hit EDIT, select a picture, and then choose DELETE: "This photo is used in an album. Do you want to delete it everywhere? Delete Everywhere"
    Does that mean "Everywhere" on my iPad, or everywhere including whatever place on my computer it found the photos to begin with?
    PLEASE HELP
    Ps:
    I've already done this:
    To delete photos from your device
    In iTunes, select the device icon in the Devices list on the left. Click the Photos tab in the resulting window.
    Choose "Sync photos from."
    On a Mac, choose iPhoto or Aperture from the pop-up menu.
    On a Windows PC, choose Photoshop Album or Photoshop Elements from the pop-up menu.
    Choose "Selected albums" and deselect the albums or collections you want to delete.
    Click Apply.

    You can still sync the photos and keep the photos that are already on the device. You have to include all of the albums or events in the pictures folder that you sync from. If you are using iPhoto, select that in the Sync Photos from drop down menu and then select all of the albums or events that you want to sync. Make sure to check Selected Albums, events, faces and automatically include (no events). Using that option will allow you to choose exactly which albums and events to sync.
    You have to remember that all photos must be included in every sync so you cannot sync photos from iPhoto today and then try to sync photos from another folder tomorrow, or you will erase all of the photos that were synced from iPhoto. You need to maintain one main Photos syncing folder for the photos that you want to transfer to the iPad. You can have subfolders within that one main folder and you can selectively sync those subfolders. You just have to place all of the photos that you want to sync into one main iPad syncing photos folder.
    There are WiFi transfer apps that allow you to transfer photos to the iPad without having to sync with iTunes. I use this one. This app (and others like it) will allow you to use multiple computers to transfer photos.
    Wireless Transfer App Easily send photos to iPhone/iPad ...

  • Syncing "Events" in iPhoto to iPhone

    I just got a new computer, with OSX Leopard. The new iPhoto is wonderful—automatically categorizing your photos (based on dates) into "events," eliminating what I found to be the cumbersome and sometimes confusing process of trying to create "albums" for which photos then existed in multiple places within iPhoto.
    However, when I try to sync my photos to my iPhone, the only option I'm given is to sync "albums," not "events." It's almost as though the current iPhone software is not updated to sync based on the new iPhoto. Does anyone know if there is a way to sync "events," or if there is a plan for, in future software versions, this to be an option?
    Thanks!

    I do not have iPhoto 7 so I cannot tell you from my experience, but read this thread with other users comments on event support and on what works and what does not work:
    http://discussions.apple.com/thread.jspa?messageID=5572011&#5572011
    As for future plans from Apple no one here knows as nothing was officially released yet.

Maybe you are looking for

  • Need help setting up static NAT to internal server

    One of my internal servers requires it to be available to the internet I am having a hard time allowing it to be NATed through my Ciscc 2801 router. It seems as though im missing something small. From what I can gather it seems as though its as issue

  • How to find document attached to user and Company code?

    Hi all, Requirement: Select a list of Business documents ( Sales order/PO....) created or changed by <b>specific users</b> which belong to a <b>Specific Company code</b>. ie,To develop a report which lists the Documents created/updated/changed based

  • Cannot Install PB Runtime 12.0 or 12.5 on Windows 8 Server 2008 R2

    Greetings All!! I am trying to set up a new server for deployment and when I run either the PB Runtime for 12.0 or 12.5 I get an error stating (in general) module pbjvm120.dll failed to register. I am also having this problem with another Windows 200

  • NotPrmUser showing up more often than it is supposed to

    Hello, I'm the admin for our P6 v7 system and we have recently expanded our user group to about 30 folks. 25 of the 30 access the software through the Web Access interface. According to Oracle technical solution ID 906128.1 the "NotPrmUser" should on

  • Windows Server 2008 and Crystal Reports 8.5 printing issue

    I am having a problem when using the crystal reports 8.5 report viewer ocx (ActiveX) under Windows Server 2008. When logging onto the server through remote desktop, a report can be shown on screen in preview. When this report is printed, and the user