Jump to content
Sign in to follow this  

Embed an AppleScript with an AppleScript

Recommended Posts

This Script below wont work for me. What am I doing wrong.


For example:

tell application "System Events"
set frontApp to name of first application process where frontmost is true
end tell

script "/Users/Neil/Library/Application Support/iPhone Remote/Apps/Uniremote.tapp/addons/Keynote/Play-Pause.scpt"


What do I need to do to make this script embed itself within this AppleScript? I get an error that says "Can't make script "/Users/Neil/Library/Application Support/iPhone Remote/Apps/Uniremote.tapp/addons/Keynote/Play-Pause.scpt" into type reference."


Also, is there a way to change the path where you see Keynote to whatever variable is set from "frontApp" in line 2?



Edited by Neil

Share this post

Link to post
Share on other sites

Have you tried this?


script "Macintosh HD:Users:Neil:Library:Application Support:iPhone Remote:Apps:Uniremote.tapp:addons:Keynote:Play-Pause.scpt"

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing

    No registered users viewing this page.

  • Who's Online (See full list)

    There are no registered users currently online