Page 3 of 3

Re: Duplicate last variant

PostPosted: Mon Oct 22, 2018 9:15 am
by Pat78
Hi Eric, This works like a charm!
Thanks a lot!

Re: Duplicate last variant

PostPosted: Tue Oct 23, 2018 5:15 am
by Eric Nepean
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.

Re: Duplicate last variant

PostPosted: Tue Oct 23, 2018 10:29 am
by Pat78
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

Re: Duplicate last variant

PostPosted: Tue Oct 23, 2018 11:03 am
by Pat78
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