Hello,
So things continue to be happy for the Update Twitter scripts you all helped me with. One bit of strangeness, though, is that sometimes the kickoff script “Update Twitter” fails to launch its helper Stay Open Script application “Update Twitter Sending Application”. But sometimes, it does. I thought maybe it was because I kept making changes to the scripts and that OS X was getting confused somehow (because it would often help if I resaved the Stay Open Script application as a Stay Open Script application with the same name.) But I’m not seeing any consistent pattern. Is there something about my code that could be causing this flakiness? (Everything works fine if the app is already running or if I launch it from the Finder, though…)
tell application "System Events"
set processnames to name of every process
end tell
if "Update Twitter Sending Application.app" is in processnames then
tell application "Update Twitter Sending Application" to SendNewTweet()
else
tell application "Update Twitter Sending Application"
launch
run
end tell
end if