Duplicate last variant

Discussion regarding all scripting related questions
Please DO NOT post to this thread anything that is not directly related to scripting of Capture One.

Re: Duplicate last variant

Postby Pat78 » Mon Oct 22, 2018 9:15 am

Hi Eric, This works like a charm!
Thanks a lot!
Pat78
 
Posts: 25
Joined: Tue Sep 19, 2017 10:00 am

Re: Duplicate last variant

Postby Eric Nepean » Tue Oct 23, 2018 5:15 am

Hi Pat
You're quite welcome.

You could now change true to false in the third line of code to avoid receiving excessive notifications.
Code: Select all
## From (current version)
set debug_notify to true

##To (new version)
set debug_notify to false
There will still be a notification if something that is not an alias is found in the cache file, otherwise it will not notify.
Cheers, Eric
[late 2015 iMac, 4GHz i7, 24GB RAM, external SSDs. GX8, E-M1, GX7, GM5, GM1 ....]
Eric Nepean
 
Posts: 487
Joined: Sat Oct 25, 2014 8:02 am
Location: Ottawa

Re: Duplicate last variant

Postby Pat78 » Tue Oct 23, 2018 10:29 am

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!

Patrick
Pat78
 
Posts: 25
Joined: Tue Sep 19, 2017 10:00 am

Re: Duplicate last variant

Postby Pat78 » Tue Oct 23, 2018 11:03 am

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

Code: Select all
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"


Patrick
Pat78
 
Posts: 25
Joined: Tue Sep 19, 2017 10:00 am

Previous

Return to Scripting



Who is online

Users browsing this forum: No registered users and 1 guest