Re: Mac Programs

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16084
interpreted = N
texte = On 2/19/98 6:08 AM, Brian B. Burton so noted...>Is there an EASY way to invoke a Mac program (analog) from within a webcat >page? >Does it depend on Applescript? (I'm blissfully ignorant of applescript)When you say invoke, do you just want to make the program run, or do you want it to run and then send commands to it? Basic AppleScripting isn't too rough (as long as the program in question is scriptable). The easiest way to get started is to run Apple's Script Editor, hit record, do the procedure you want done automatically, then use that script in your web page. For instance, here's one that was recorded by selecting all the items of a desktop folder, throwing them away, then emptying the trash (WebCat tags added, of course):[applescript] tell application Finder activate select every item of container window of folder files delete selection empty trash end tell [/applescript]One thing I've noticed when using AppleScript in WebCatalog is that when I save the file, it needs to be in a Mac Text format (not an ISO format) when I save the file. Coupled with WebCatalog tags, embedded AppleScripts are a very powerful tool for automation and remote maintenance. If you want more technical details on the language, check out:http://devworld.apple.com/dev/techsupport/insidemac/AppleScriptLang/AppleSc riptLang-2.htmlRob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Mac Programs (John Hill 1998)
  2. Re: Mac Programs (Rob Marquardt 1998)
  3. Mac Programs (Brian B. Burton 1998)
On 2/19/98 6:08 AM, Brian B. Burton so noted...>Is there an EASY way to invoke a Mac program (analog) from within a webcat >page? >Does it depend on Applescript? (I'm blissfully ignorant of applescript)When you say invoke, do you just want to make the program run, or do you want it to run and then send commands to it? Basic AppleScripting isn't too rough (as long as the program in question is scriptable). The easiest way to get started is to run Apple's Script Editor, hit record, do the procedure you want done automatically, then use that script in your web page. For instance, here's one that was recorded by selecting all the items of a desktop folder, throwing them away, then emptying the trash (WebCat tags added, of course):[applescript] tell application Finder activate select every item of container window of folder files delete selection empty trash end tell [/applescript]One thing I've noticed when using AppleScript in WebCatalog is that when I save the file, it needs to be in a Mac Text format (not an ISO format) when I save the file. Coupled with WebCatalog tags, embedded AppleScripts are a very powerful tool for automation and remote maintenance. If you want more technical details on the language, check out:http://devworld.apple.com/dev/techsupport/insidemac/AppleScriptLang/AppleSc riptLang-2.htmlRob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Rob Marquardt

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:

Massaging SubTotals (1999) Paths change questions ... (2004) Emailer help....! (1997) emailer truncates last letter! (1997) [LOOKUP] (1997) missing records (1998) Getting total number of items ordered (1997) [/application] error? (1997) RE: type 2 errors with ssl server (1997) WebCat2b13MacPlugIn - syntax to convert date (1997) emailer w/F2 (1997) What if SSL server down? MAC (1997) Is there an alternative to emailer? (1999) How true is this? (1999) Fun with Dates - finally resolved but.... (1997) Sendmail & Time Issue (2001) calculating ShipCost depending on weight (1997) Running 2 two WebCatalog.acgi's (1996) [ot] g5 xserve drives (2004) Parsing overhead for commenting out line endings (2003)