Hi there - i am trying to write a script that will remove the recent file list from quicktime. I have found a snippet of code by someone who has created
a script to do something similar in safari but i can’t get the result i need in quicktime player??? I have GUI scripting enabled but can anyone point me in the right direction? (Mac OS x 10.4.5 Quicktime 7.0.4 pro)
The Safari script =
tell application "Safari"
activate
end tell
tell application "System Events"
tell application process "Safari"
click menu item "Empty Cache." of menu 1 of menu bar item "Safari" of menu bar 1
delay 1
click button "Empty" of window 1
delay 1
click menu item "Reset Safari." of menu 1 of menu bar item "Safari" of menu bar 1
delay 1
click button "Reset" of window 1
end tell
end tell
so i thought if i change the variables for quicktime i would get…
tell application "System Events"
tell application process "Quicktime Player"
click menu item "Clear Menu" of menu 1 of menu bar item "Open Recent" of menu bar 1 "File"
end tell
end tell
But it doesn’t work and i get an error message??? PS can anyone tell me what the numbers refer to in the ‘menu 1 item’ string
Many thanks in advance