Re: OSX Applescripts -- Anyone? please?

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55383
interpreted = N
texte = If anyone is following this thread, Ron and I discussed this yesterday offline and the upshot is that OSX handles Applescript in a way that WebDNA can't manage. I've decided to use [shell] with Imagemagick instead, and save the [applescript] for OS9 servers. Terry >Hi Terry, > >We use AppleScript to add/remove users to the Rumpus FTP server database. On >OS X you have have to use "osascript" to call the applescript. > >We built a shell script like this: > >#!/bin/sh >/usr/bin/osascript /Library/WebServer/Documents/website/applescript_kick > >"/usr/bin/osascript" is the full path to your osascript. >"/Library/WebServer/Documents/planet/applescript_kick" is the path to the >apple script. > >The applescript for this step is quite simple: > >-- Start applescript -- > >tell application "Rumpus 3.0.1 (OS X)" > > reload user database > >end tell >-- End AppleScript -- > >Then when we need this we called it with the [shell] context. > >Hope that helps. > >RonnyMc > >ps: Mac Certain that all files have UNIX style carriage returns or it does >not work. This cost me several hours when I made the shell script on my PC >and uploaded to the OS X server. > > >----- Original Message ----- >From: "Terry Wilson" >To: "WebDNA Talk" >Sent: Friday, January 09, 2004 8:06 AM >Subject: OSX Applescripts -- Anyone? please? > > >> Okay, I'm asking this a third time in the hopes that someone out >> there can help me. Surely I'm not the only one trying to run >> Applescripts on OSX/Apache. >> ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: OSX Applescripts -- Anyone? please? ( Terry Wilson 2004)
  2. Re: OSX Applescripts -- Anyone? please? ( William DeVaul 2004)
  3. Re: OSX Applescripts -- Anyone? please? ( Christer Olsson 2004)
  4. Re: OSX Applescripts -- Anyone? please? ( Terry Wilson 2004)
  5. Re: OSX Applescripts -- Anyone? please? ( "WebDna @ Inkblot Media" 2004)
  6. OSX Applescripts -- Anyone? please? ( Terry Wilson 2004)
If anyone is following this thread, Ron and I discussed this yesterday offline and the upshot is that OSX handles Applescript in a way that WebDNA can't manage. I've decided to use [shell] with Imagemagick instead, and save the [applescript] for OS9 servers. Terry >Hi Terry, > >We use AppleScript to add/remove users to the Rumpus FTP server database. On >OS X you have have to use "osascript" to call the applescript. > >We built a shell script like this: > >#!/bin/sh >/usr/bin/osascript /Library/WebServer/Documents/website/applescript_kick > >"/usr/bin/osascript" is the full path to your osascript. >"/Library/WebServer/Documents/planet/applescript_kick" is the path to the >apple script. > >The applescript for this step is quite simple: > >-- Start applescript -- > >tell application "Rumpus 3.0.1 (OS X)" > > reload user database > >end tell >-- End AppleScript -- > >Then when we need this we called it with the [shell] context. > >Hope that helps. > >RonnyMc > >ps: Mac Certain that all files have UNIX style carriage returns or it does >not work. This cost me several hours when I made the shell script on my PC >and uploaded to the OS X server. > > >----- Original Message ----- >From: "Terry Wilson" >To: "WebDNA Talk" >Sent: Friday, January 09, 2004 8:06 AM >Subject: OSX Applescripts -- Anyone? please? > > >> Okay, I'm asking this a third time in the hopes that someone out >> there can help me. Surely I'm not the only one trying to run >> Applescripts on OSX/Apache. >> ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Terry Wilson

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Problems with [Math] (1998) international time (1997) Nested tags count question (1997) emailer setup (1997) Help! WebCat2 bug (1997) WebCat2 - [include] tags (1997) Re:2nd WebCatalog2 Feature Request (1996) Database Upload (2000) Summary search -- speed (1997) Requiring that certain fields be completed (1997) [WebDNA] snow (2009) [append] - illegal characters? (2000) updating the database (2000) Help! WebCat2 bug (1997) The Form authentication trick (2000) adding second sku (2000) no global [username] or [password] displayed ... (1997) Using Eudora instead of Emailer, and cron facility (1998) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) WebCatalog for guestbook ? (1997)