Is there a way to do this wo loops. Name of current application without .app ending.
Hi cirno,
you’ve just posted the answer
name of current application
If i save this code as app and run it, it fails:
tell application name of current application to display dialog "test"
or
set app_name to name of current application
tell application app_name to display dialog "test"
Of course it fails, because it wasn’t your question
To tell the current application something, use this
tell current application to display dialog "test"
I still got problem. If i save this as app and run it by double clicking it, the quickly activate Safari, then after few seconds, this test app starts to bounce in dock and this dialog is in test app not in Safari???
delay 5
tell current application to display dialog "test"
Finally I know, what you want.
Look at this post:
http://bbs.applescript.net/viewtopic.php?pid=72406#p72406
PS: the more detailled the questions, the more detailled the answers