Re: OSX Applescripts -- Anyone? please?

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55385
interpreted = N
texte = We are successfully using applescript via shell/osascript as in: [TEXT]vShell=3D-e 'tell application "FileMaker Pro"' [/TEXT] [TEXT]vShell=3D[vShell]-e 'activate' [/TEXT] [TEXT]vShell=3D[vShell]-e 'quit' [/TEXT] [TEXT]vShell=3D[vShell]-e 'end tell'[/TEXT] [SHELL]/usr/bin/osascript [vShell][/SHELL] (Of course this is a meaningless script, just for showing the idea) >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/ -- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmoe Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se ------------------------------------------------------------- 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)
We are successfully using applescript via shell/osascript as in: [text]vShell=3D-e 'tell application "FileMaker Pro"' [/TEXT] [text]vShell=3D[vShell]-e 'activate' [/TEXT] [text]vShell=3D[vShell]-e 'quit' [/TEXT] [text]vShell=3D[vShell]-e 'end tell'[/TEXT] [shell]/usr/bin/osascript [vShell][/SHELL] (Of course this is a meaningless script, just for showing the idea) >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/ -- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmoe Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se ------------------------------------------------------------- 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/ Christer Olsson

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:

Digest for 4/18/97 (1997) WebCatalog2 Feature Feedback (1996) ShowNext for method=POST (1997) Question on the sandbox (2003) WebCat2 Append problem (B14Macacgi) (1997) emailer (1997) [Summary] re: Emailer setup (1997) Re:Running 2 two WebCatalog.acgi's (1996) (p2) WebDNA 5 - Privacy Issue (Built in sniffer) (2003) All of a Sudden Type 2 errors (1999) Please.. copies of Digest for 7/29 and 7/30? (1997) Where's Cart Created ? (1997) ThreadMem ignored? (1998) Setting up shop (1997) Cart Creation (1998) WebCat b13 CGI -shownext- (1997) WC2.0 Memory Requirements (1997) shell problems again... (2003) SQL/WebCatalog crash fest (2001) WebMerchant when CC network is down (1998)