property steam_id : "8930" --ここに起動したいSteamアプリのIDを入力
if runningProcess("Steam") then
open location "steam://rungameid/" & steam_id
else
do shell script "open /Applications/Steam.app --args -start steam://rungameid/" & steam_id
end if
on runningProcess(appName) --return true or false
tell application "System Events"
if application process appName exists then
return true
else
return false
end if
end tell
end runningProcess