Using AppleScript to manipulate the menu bar
Does anyone know how to access the menu bar and its contents using scripts that are added to the Scripts menu in Capture One? I cannot figure this out and keep getting invalid index errors when I try to access it. The odd thing is that if I run the script from Script Editor it works just fine. This is the code that is generating the error:
tell application "System Events"
tell process "Capture One"
click menu item 2 of menu 1 of menu item 19 of menu 1 of menu bar item 6 of menu bar 1
delay 2
click button 2 of group 1 of window 1
delay 2
set text of text field 1 of window 1 to styleNameToSet
end tell
end tell
tell application "System Events"
tell process "Capture One"
click menu item 2 of menu 1 of menu item 19 of menu 1 of menu bar item 6 of menu bar 1
delay 2
click button 2 of group 1 of window 1
delay 2
set text of text field 1 of window 1 to styleNameToSet
end tell
end tell
0
投稿コメントは受け付けていません。
コメント
0件のコメント