0
tell application "SpriteBuilder" to activate
tell application "SpriteBuilder"
    open "portrait.spritebuilder"
end tell

The portrait.spritebuilder directory is in the same directory as the script. I think I need an absolute path, but I can't seem to get it working. I've tried adapting this suggestion, but no luck. Any ideas?

1 Answer 1

2

The linked answer should work. Did you put it in a Finder block? Like this:

tell application "Finder"
    set myFolder to container of (path to me) as text
end tell

tell application "SpriteBuilder"
    activate
    open myFolder & "portrait.spritebuilder"
end tell
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.