TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    applescript

    Mac
    3
    7
    612
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C. consideringC
      C. considering
      last edited by

      anyone know how to execute an applescript script from a trigger?

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @C. considering
        last edited by Russ

        @C-considering, according to this page, the command would be like this:

        osacript /folder/ScriptName.scpt
        

        Russell VanderMey

        G 1 Reply Last reply Reply Quote 0
        • C. consideringC
          C. considering
          last edited by

          thanks, I appreciate it!

          1 Reply Last reply Reply Quote 0
          • tuicemenT tuicemen moved this topic from Instructions on
          • G
            garym77 @Russ
            last edited by

            @Russ I have been struggling for weeks trying to ru an AppleScript from Triggercmd and have no success. I can run a one line with osascript - e, but not run a script ??? Using osascript /Users/skypad/G Dropbox/Scripts/TestGary.scpt . . . Nothing

            RussR 1 Reply Last reply Reply Quote 0
            • RussR
              Russ @garym77
              last edited by Russ

              @garym77, you could try quoting the full path like this:

              osascript "/Users/skypad/G Dropbox/Scripts/TestGary.scpt"

              There's a space in your path, so I think osascript would think /Users/skypad/G is the first parameter and Dropbox/Scripts/TestGary.scpt is the second parameter if you don't quote it.

              Russell VanderMey

              G 1 Reply Last reply Reply Quote 0
              • G
                garym77 @Russ
                last edited by

                @Russ I reformatted the path and it is WORKING ! Like this osascript /Users/skypad/G\ Dropbox/Scripts/ASI\ Daily\ Info.scpt

                Thank You !

                RussR 1 Reply Last reply Reply Quote 0
                • RussR
                  Russ @garym77
                  last edited by

                  Nice job @garym77. I guess it makes sense you'd have to escape the spaces with backslashes.

                  Russell VanderMey

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post