• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Launch remote script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launch remote script


  • Subject: Re: Launch remote script
  • From: Rich Sweeny <email@hidden>
  • Date: Wed, 4 Apr 2007 13:14:22 -0400


Hi,

I recently had similar issues launching a script on a remote machine. Run script cannot be used. I ended up using the osascript command.  I had a script on the remote machine called 'Beep.scpt' and you could pass a parameter telling it how many times. I used this line on the calling machine to run the script on the remote machine:
do shell script "osascript  /Beep.scpt  5"

The script on the remote machine was this:
on run(x)
        beep x
end run

You can pass a literal this way but not a variable. The only way I could figure out to pass variables was to write my parameters to a file on a server accessed by both machines. I then opened the file on the remote to read the parameters in and used this to launch the script:
do shell script "osascript  /Users/Shared/bin/AdobeAutomate/ProcessFiles.scpt"

Which is nothing more than the location of the script on the remote machine. It worked.

Rich

Richard Sweeny | System Administrator | VERTIS COMMUNICATIONS | 181 Rittenhouse Circle | Bristol, Pa., 19007

T 215.781.7069 | F 215.785.6451 | C 732.558.5253 |  email@hidden | www.vertisinc.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Launch remote script
      • From: Peter Baxter <email@hidden>
    • Re: Launch remote script
      • From: Peter Baxter <email@hidden>
  • Prev by Date: Re: Can not get "item" from "position"
  • Next by Date: Re: Can not get "item" from "position"
  • Previous by thread: Re: Launch remote script
  • Next by thread: Re: Launch remote script
  • Index(es):
    • Date
    • Thread