Applescript key error
I have this I think correct applescript:
but I get this error: "Capture One got an error: Invalid key form." number -10002 from selected variants id "9B3F746C-A9AE-4387-ABBB-48596F368886"
why is this and what can I do?
tell application "Capture One"
set img_list to (get selected variants)
repeat with img in img_list -- one variant of selected variants
set p to parent of img -- the parent image
end repeat
end tell
but I get this error: "Capture One got an error: Invalid key form." number -10002 from selected variants id "9B3F746C-A9AE-4387-ABBB-48596F368886"
why is this and what can I do?
0
-
to my knowledge ( I say that because it very hard to get actual info regarding this stuff) selected variants passes variant id's not paths to the raw file.
What is that you are trying to do?
I've had better luck by using argv which passes the posix path of the raw file....0 -
Hello and thanks for your reply.
I just want to get the paths of the parents of the selected variants.0 -
I'm sure there is a better way than this but this works
on run argv
try
if (class of argv is list) then
set selected_images to item 1 of argv
repeat with img_path in selected_images
set img_text to img_path as text
display dialog img_text
end repeat
end if
end try
end run0 -
Thank you, it is strange, but it works! 0
投稿コメントは受け付けていません。
コメント
4件のコメント