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

applescript

Mac
3
7
668
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
    C. considering
    last edited by Feb 20, 2020, 8:20 PM

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

    R 1 Reply Last reply Feb 20, 2020, 9:56 PM Reply Quote 0
    • R
      Russ @C. considering
      last edited by Russ Feb 20, 2020, 9:56 PM Feb 20, 2020, 9:56 PM

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

      osacript /folder/ScriptName.scpt
      

      Russell VanderMey

      G 1 Reply Last reply Nov 27, 2022, 4:51 PM Reply Quote 0
      • C
        C. considering
        last edited by Feb 20, 2020, 10:51 PM

        thanks, I appreciate it!

        1 Reply Last reply Reply Quote 0
        • T tuicemen moved this topic from Instructions on Jan 31, 2022, 12:45 PM
        • G
          garym77 @Russ
          last edited by Nov 27, 2022, 4:51 PM

          @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

          R 1 Reply Last reply Nov 27, 2022, 11:01 PM Reply Quote 0
          • R
            Russ @garym77
            last edited by Russ Nov 27, 2022, 11:02 PM Nov 27, 2022, 11:01 PM

            @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 Nov 28, 2022, 12:27 AM Reply Quote 0
            • G
              garym77 @Russ
              last edited by Nov 28, 2022, 12:27 AM

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

              Thank You !

              R 1 Reply Last reply Nov 28, 2022, 12:37 AM Reply Quote 0
              • R
                Russ @garym77
                last edited by Nov 28, 2022, 12:37 AM

                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
                1 out of 7
                • First post
                  1/7
                  Last post