applescript - handler cannot handle objects of this class -10010 -
i trying use script open cs:go applescript program, error message:
handler cannot handle objects of class -10010
here's script:
set myfilepath "macintosh hd:users:kasper:desktop:counter-strike global offensive" tell application "finder" open myfilepath delay 5 tell application "system events" set unixid unix id of process "csgo_osx" shell script ("renice -20 -p " & unixid) password "2306" administrator privileges
any ideas why happens?
your second line telling finder's open command open string. needs given file or alias. change line to:
tell application "finder" open file myfilepath
Comments
Post a Comment