Scripting NOOB
Hello,
I'd like to make a script that would add selected photo(s) to a specific folder.
I don't know where to start. Well, I know I use the Script Editor, save the script in the scripting directory then update the script menu. But that is it...
I suspect I will need to use:
add inside v : Add one or more variants to an album collection.
add inside collection : An album collection to add the variants to
variants list of variant : One or more variants to be added
Exact syntax???? No clue :)
Any help would be appreciated.
Monty
-
I moved this to the Automation - Scripting area where you are more likely to get assistance.
0 -
Thank you
0 -
I highly reccomend Script Debugger, I wish I had started with it instead of floundering around in semi darkness with Script Editor for a year. I now use it all the time.
1 -
Leta say that before you start the script, you select some variants.
Once starting the script you can use this to make a list of variants that you want moved.
tell application "Capture One 23" to set variants_list to get every variant whose selected is true
The hard question is now that the variants are selected and script is running, how do you want to choose/identify the collection (album) where you want to add these variants too?
If you are running the script standalone (as an application) of from Script Editor or Script Debugger, then while the script is paused, you can choose an album with your mouse. But if you run the script from capture One's Scripts menu, that is not possible.
If you take the standalone/Script Editor approach, you can pause the script waiting for user input e.g.
Display Alert "Select target Album, then click OK"
tell application "Capture One 23" to tell current document to set targetCollection to a reference to current collectionNow that you have your target collection and your list of variants, and you can proceed with Add Inside
0 -
At this link is quite a large script I wrote a few years that may serve as a good general example of an Applescript for Capture One. Feel free to use any parts that you may find useful.
1 -
@Eric
Oh… My… Gosh…
There seems to be no end to what can be done!
Thank you. I will be studying it!0 -
Start simple. Get one line working at a time. If the line is complex, get part of it working, then add complexity.
When things fail, as they inevitably will, There is a lot to be learned by observing the Applescript messages and replies.
Always check the Applescript language guide.
The Macscripter web site has a ton of useful information.
Most of the Applescript gurus hang out at the Late Nite SW Forum.0
Post is closed for comments.
Comments
7 comments