The as string command only converts "Select backup folder:" to a string (which it already was) Since I arrive home late I don't have a chance to fully debug this scrript.īut one thing that I notice immediately is this lineĪdding a log statement I verified that the variable/property backupFolder_as is class "alias" not class "text". Tell application "Finder" to duplicate file theImageFile_as to folder backupFolder_as with replacing Set theImageFile_as to get (get alias POSIX file theImageFilePath_ps) as string Set backupFolder_as to choose folder with prompt "Select backup folder:" ![]() Set backupFolder_as to backupFolder_as as alias an error that resolves by asking for a new folder if the script has a property that has been deleted (i.e., the backup folder), it will cause Set backupFolder_as to choose folder with prompt "Select backup folder:" as string Tell application "Capture One 11" to set theImageFilePath_ps to get path of parent image of primary variant #_as indicates the string representation of the path in alias form #_ps indicates the string representation of the path in POSIX form When you click on "Compile" again in the script editor it works fine again and it is asking for a new backup folder. The script gives an error that it cannot find the backup folder but it is not asking to choose a new backup folder (What I want when the backup folder is missing). eWhen you delete your previous made backup folder and empty your trash. But it does not exactly what I want at the moment. ![]() What I want is when the backup folder is deleted or when you start a new Session, it should ask you to choose a new backup folder. After that you can keep shooting and the script will duplicate the images to that specific folder. I only tried it by running it from the scripteditor,but running it with an capture done script, It will ask you to choose a backup folder when you shoot you're first image. ![]() I've been playing around with your last script and made some changes to make it more flexible, by asking with a prompt for a backup folder. Posted some questions on Stackexchange before, really helpfull applescripting for Capture One is still a bit specific.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |