No internet connection
  1. Home
  2. How to

Correct way to run Apple Script from a Macro?

By Steve @stevef
    2022-04-23 11:36:50.813Z

    Hi,

    I don't think this is a bug, just me being dumb, so thought I would check the correct procedure for this. I am simply trying to use the 'Execute Apple Script' Macro item and can't seem to get it to work. Am I correct that you put the script name in "Script"" and the path in "Path:"? Like this:

    I have tried to run manually, and also when Nuendo quits, but the script simply doesn't run. Am I doing something wrong? I have even tried converting to a script and that doesn't work either.

    I realise I have the option to actually put the apple script in a script, but would like to do it this way as it is easier!

    Thanks.

    Steve.

    Solved in post #2, click to view
    • 5 replies
    1. Hi Steve,

      The Path should hold the entire path to the script. The "script" property is for embedding an applescript directly into SF code. Only use one of the two :)

      Here's an example of using the Script property to embed a script directly:

      Reply1 LikeSolution
      1. SSteve @stevef
          2022-04-23 11:56:31.005Z

          You see, I thought I was being dumb :)

          That works great, thanks!

          1. SSteve @stevef
              2022-04-23 12:08:38.518Z

              Is there any reason why a script would run twice? I have one for when Nuendo launches, which runs once so is fine. But then I have one that runs when Nuendo quits, and for some reason the runs twice on the trot - any idea?

              Steve.

              1. Hm, no not at the top of my head or without looking at some log files.

                1. SSteve @stevef
                    2022-04-23 12:35:00.602Z

                    I will submit as a bug report then, as it isn't just related to that script or Nuendo, having just done some testing,