Duplicate last variant
Hi all,
I'm testing an simple script which should duplicate the last variant to a specific folder after capture.
This is the Capture done script:
It will trigger this script but i'm doing something wrong:
Can a someone tell me what i'm doing wrong? ☹️
Thanks Patrick
I'm testing an simple script which should duplicate the last variant to a specific folder after capture.
This is the Capture done script:
tell application "Capture One 11"
set capture done script to alias "Macintosh HD:Users:Shared:Scripts:Backup.scpt"
end tell
It will trigger this script but i'm doing something wrong:
tell application "Capture One 11" to tell current document
set theVariant to the last variant
set backupFolder to alias "Macintosh HD:Users:fotograaf:Desktop:BackUp"
duplicate theVariant to backupFolder
end tell
Can a someone tell me what i'm doing wrong? ☹️
Thanks Patrick
0
-
Hi Eric, This works like a charm!
Thanks a lot!0 -
Hi Pat
You're quite welcome.
You could now change true to false in the third line of code to avoid receiving excessive notifications.There will still be a notification if something that is not an alias is found in the cache file, otherwise it will not notify.
## From (current version)
set debug_notify to true
##To (new version)
set debug_notify to false0 -
Hi Eric,
I've tested the script all day yesterday. And it works perfect! Can't thank you enough for your effort you've put in it.
I saw the debug notify indeed and turned it to false.
Thanks!
Patrick0 -
Hi Eric,
When using a Capture done or Batch done script, Capture One keeps on running this script. So to addition to your script, I wrote this little script to stop the script running when needed. (with a little help from some lines from your script).
I've loaded this script in the Capture One's scripts menu so I can toggle it off easily
set backup_notify to true -- set this to false to stop receiving notifications
tell application "Capture One 11"
set capture done script to ""
end tell
tell application "System Events" to set deleteFile to (get path to scripts folder)
tell application "Finder"
delete (every item of deleteFile whose name is "BackupFolderAlias.txt")
end tell
if backup_notify then display notification "Backup turned off"
Patrick0
Post is closed for comments.
Comments
34 comments