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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -