Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mrawn

macrumors newbie
Original poster
Feb 10, 2011
2
0
I'm trying to make a script to open Pandora desktop on login and pause it (app wont launch paused)

If I run the script in applescript editor it works perfect. But when I save it as an application and run it, I get a Stack Overflow error. Any help would be greatly appreciated!

My script is:
tell application "Pandora"
run
end tell
delay 3
tell application "Pandora"
activate
tell application "System Events" to keystroke " "
 
Don't you need an "end tell" after activating Pandora?

You could also put in dialog statements after each action to see where the bad actor is.
 
oh, i pasted the code wrong. there is actually an end tell at the end...

I tried your suggestion and discovered that it is failing trying to run pandora. Suddenly I had an epiphany. I named the applescript application "Pandora"! It was trying to run itself! I changed the name and it works.

What a simple solution...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.