RE: applescript in packagemaker
RE: applescript in packagemaker
- Subject: RE: applescript in packagemaker
- From: "spondita Madhuri Neog" <email@hidden>
- Date: Mon, 29 Mar 2010 16:16:41 +0530
- Thread-topic: applescript in packagemaker
Title: RE: applescript in packagemaker
Thanks Paul. I have this applescript and I need to call it from shellscript using osascript command.Multiple commands can be clubbed using -e option I learnt but I am not able to do the same.Any help is welcome.
My applescript is as follows :
on ApplicationIsRunning(appName)
tell application "System Events" to set appNameIsRunning to exists (processes where name is appName)
return appNameIsRunning
end ApplicationIsRunning
if ApplicationIsRunning("my_app") then
display dialog "The application is running..please quit before you proceed for install!"
set pressedbutton to button returned of result
if pressedbutton is "Ok" then
tell application "my_app" to quit
else if pressedbutton is "Cancel" then
display dialog "You did not quit the application"
end if
else
display dialog "my_app is not running!"
end if
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden