Hi
I use this (“all01x02”) script to open file
try
tell application "Finder"
set myFolder to (container of (container of (path to me))) as text
open file "21 .pdf" of folder (myFolder & "pdf:paoli:modularCase:large")
end tell
on error
return quit
end try
WORKS WELL
I run the above script(“all01x02”)"from a flash button with fscommand action
on (release) {
fscommand("exec", "all01x02");
}
WORKS WELL
BUT
when I run this system event script
tell application "System Events"
restart
end tell
IT DOESN’T RUN
I run the system event script to restart the computer from the flash button but it does’t
run the script
Here is how I tell flash button to run the script (restart)
on (release) {
fscommand("exec", "restart");
}
So is it possible to restart or shutdown the MAC computer from the from a flash button. I know it may be the wrong place to ask this question.
But I don’t want to spent lot of time if you big guys just say NO
please give some suggestions