• 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: Remote Script Server
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remote Script Server


  • Subject: Re: Remote Script Server
  • From: Tommy Bollman <email@hidden>
  • Date: Fri, 30 Jul 2010 17:05:25 +0200

Hello


If you launch your script server application from the Mac OsX server, and the have the users scripts address that server via eppc:// calls (remote apple events) I believe you should be just fine. I guess this will not be that efficient thought, I don't really know what the cost is in machine resources, but I guess that the remote events are far more expensive than the local ones.


On 30 Jul 2010, at 15:30, Wayne Melrose wrote:

>
>>
>> I want to, if it was possible, use 'load script' to load a script from a remote server, not just from a file reference. Something like (pseudo code)…
>>
>> set my_lib to load script url "scpt://myserver.com/my_lib.scpt"
>>
>> So, when a script is run on the user's Mac and needs to load a library, some of the solutions I've thought of so far are…
>> 	• Copy a .scpt file (via FTP?) to the user's Mac and then use 'load script'. This is basic and I don't thing FTP is particularly quick.
>> 	• Is there an AppleScriptObjC solution? Does NSAppleScript's initWithContentsOfURL use a local url as apposed to a network url?
>> 	• What about using Ruby On Rails?*
>> 	• Or MySql?*
>>
>> *How would I store a compiled script that Rails or MySql could return? Both can be easily configured to run on Mac OS X Server. I want to avoid having to store the library as a text (in a database) and then having to compile it on the user's Mac as this could be problematic. If I had compiled a library against PhotoShop CS5 and the user only had CS4, wouldn't that bring up the 'where's is…' dialog when compiled on the user's Mac?
>>
>> Has anyone got any thoughts, pointers or advice?
>
> I thought that "load script" actually compiles each time you call on it?
>
> I have no idea about AppleScriptObjC.. Interested to know that myself.
>
> You say you don't want to do it from a database or text file? But I would have thought a call to a web page, which would return the text content of the script, then "run script" to load it would have been a good option? I have solutions that work in this way. I could help you with this kind of solution.
>
> Regarding your comments about application versions, I guess you could handle that before it gets to the user, also, if the user had their version of the application launched, the application would compile with that version. (CS3 instead of CS4)
>
> _______________________________________________
> 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

Best regards



Tommy Bollman
--------------------------------------------------------------------------------------------------
Mollison's Bureaucracy Hypothesis:
	If an idea can survive a bureaucratic review
	and be implemented it wasn't worth doing.

 _______________________________________________
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: Remote Script Server
      • From: Simon Topliss <email@hidden>
References: 
 >Remote Script Server (From: Simon Topliss <email@hidden>)
 >Re: Remote Script Server (From: Wayne Melrose <email@hidden>)

  • Prev by Date: Re: Libraries and effiency
  • Next by Date: Re: Remote Script Server
  • Previous by thread: Re: Remote Script Server
  • Next by thread: Re: Remote Script Server
  • Index(es):
    • Date
    • Thread