Batch import files into Lightroom master catalog
I was wondering if anybody could help me with this one. I created a Watch Me Do which carries out a few functions in Adobe Lightroom Classic CC.
I was wondering if anybody could help me with this one. I created a Watch Me Do which carries out a few functions in Adobe Lightroom Classic CC.
I would like to be able to get this script to process a number of selected files which happen to be Lightroom catalog files (.lrcat) from within a folder, and then import these catalogs one after the other into the master catalog.
Some of the catalogs are an older version so before the import into the master catalog, Lightroom will ask to update the file and then imports - this would probably need to be an ‘If’ statement as not all the catalogs will need updating.
I’m sure it’s my lack of skill in this department that is causing most of the problem but I’m also not sure if Lightroom doesn’t integrate too well with apple script and so the task may not be achievable.
Any help will be extremely appreciated
I've also copied the Watch Me Do into Applescript:
-- Bring the window “Master.lrcat - Adobe Photoshop Lightroom Classic - Library” to the front.
delay 2.0
set uiScript to "click window \"Master.lrcat - Adobe Photoshop Lightroom Classic - Library\" of application process \"Lightroom\""
-- Click the “File” menu.
delay 2.0
set uiScript to "click menu bar item \"File\" of menu bar 1 of application process \"Lightroom\""
-- Import from Another Catalog...
delay 2.0
set uiScript to "click menu item \"Import from Another Catalog...\" of menu 1 of menu bar item \"File\" of menu bar 1 of application process \"Lightroom\""
-- Type “_lib_Catalog0.lrcat” into the text field.
delay 2.0
set uiScript to "click text field 1 of group 1 of list 1 of scroll area 1 of scroll area 1 of browser 1 of splitter group 1 of splitter group 1 of window \"Import from Lightroom Catalog\" of application process \"Lightroom\""
-- Click the “Choose” button.
delay 2.0
set uiScript to "click UI Element \"Choose\" of window \"Import from Lightroom Catalog\" of application process \"Lightroom\""
-- Click the “Discard Upgraded Catalog After Import.” radio button.
delay 2.0
set uiScript to "click radio button \"Discard Upgraded Catalog After Import.\" of group 1 of window \"Catalog Must Be Upgraded\" of application process \"Lightroom\""
-- Click the “Start Background Upgrade” button.
delay 2.0
set uiScript to "click UI Element \"Start Background Upgrade\" of window \"Catalog Must Be Upgraded\" of application process \"Lightroom\""
-- Make a selection from the popupbutton.
delay 2.0
set uiScript to "click pop up button 1 of group 3 of window 1 of application process \"Lightroom\""
-- Metadata and develop settings only
delay 2.0
set uiScript to "click menu item \"Metadata and develop settings only\" of menu 1 of pop up button 1 of group 3 of window 1 of application process \"Lightroom\""
-- Click the “<fill in title>” checkbox.
delay 2.0
set uiScript to "click checkbox 1 of row 1 of table 1 of scroll area 1 of group 1 of window 1 of application process \"Lightroom\""
-- Click the “Import” button.
delay 2.0
set uiScript to "click UI Element \"Import\" of window 1 of application process \"Lightroom\""
NB: I know that the code from the Watch Me Do can be stripped down but, have left it whole for complete reference.