Hi,
I have an applescript that seemed to work okay till OS 10.8.4. Now with OS 10.8.5 and 10.9, I am having below issue.
What I do is,I have a subroutine where I check if the app is installed on the system or not and if it is not installed, I return back. If it is installed, I do other actions, like launching the app, etc. (Code copied below).
However, what is happening now is, whenever I run the script and if the app is not installed, it does return from the subroutine but then before exiting from the script, it opens up the choose application dialog. It also opens up when I compile or save the file. The application is Timbuktu Pro.
Below is the simplified code from my larger script. This simplified code has same problem.
Does anyone have any suggestions for solution?
Thanks a lot!
*********************Code Below*********************
I have an applescript that seemed to work okay till OS 10.8.4. Now with OS 10.8.5 and 10.9, I am having below issue.
What I do is,I have a subroutine where I check if the app is installed on the system or not and if it is not installed, I return back. If it is installed, I do other actions, like launching the app, etc. (Code copied below).
However, what is happening now is, whenever I run the script and if the app is not installed, it does return from the subroutine but then before exiting from the script, it opens up the choose application dialog. It also opens up when I compile or save the file. The application is Timbuktu Pro.
Below is the simplified code from my larger script. This simplified code has same problem.
Does anyone have any suggestions for solution?
Thanks a lot!
*********************Code Below*********************
Code:
global tb2Exists
set netopiaprefexists to true
try
tell application "Finder" to get application file id "com.netopia.timbuktu.pro"
set tb2Exists to true
on error
set tb2Exists to false
end try
settimbuktu()
display dialog "Returned from timbuktu"
on settimbuktu()
if tb2Exists is false then
--bringtofront()
display dialog ¬
"Seems Timbuktu Pro is not installed on this computer.
Install Timbuktu Pro and then re-run this script to configure timbuktu preferences." with title "AutoConfigure: Timbuktu Pro not Installed" buttons {"Continue"} default button 1 with icon 2
return
end if
try
if netopiaprefexists is false then
tell application "Timbuktu Pro.app"
ignoring application responses
activate
delay 3
quit
end ignoring
end tell
end if
end try
Last edited by a moderator: