Re: WebCat control of Print

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 36672
interpreted = N
texte = >Anyone got any examples on how to [shell] or [applescript] an application to >print content from a directory, stuffed with documents from WebCat? > >Tutorials are most welcome. > >PowerPalle >The following code converts all text files in /dir/ to type BBedit, and then prints each one using BBedit. You will need to adapt it to a different application if you want to print a different file type.[TEXT SHOW=F]FLIST=|[LISTFILES /dir/][HIDEIF [URL][FILENAME][/URL]^Icon][FILENAME]|[/HIDEIF][/LISTFILES][/TEXT][LISTWORDS words=[URL][FLIST][/URL]&delimiters=[URL]|[/URL]][APPLESCRIPT] try tell application Finder select file [WORD] of folder dir of folder vhost of folder WebStar of disk HDName set creator type of selection to R*ch print selection end tell on error beep end try return [/APPLESCRIPT][/LISTWORDS] While we're on the topic of Applescript, this is another useful snippet of Applescript that keeps Webstar in front and logging turned on. It's run from a Trigger once an hour right below the code I mentioned above.[APPLESCRIPT] try tell application Finder get application file id WWW‡ set appName to name of result end tell tell application appName suspend logging false activate end tell on error end try return [/APPLESCRIPT]Have fun.-Dale -- Dale LaFountain Vice President of Information Technology, WebMaster Dark Horse Comics, Inc. mailto:dalel@darkhorse.com Phone: 503-652-8815 x324 http://www.darkhorse.com/------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: WebCat control of Print (Dale LaFountain 2001)
  2. Re: WebCat control of Print (Palle B. Nielsen (PowerPalle) 2001)
  3. Re: WebCat control of Print (Dale LaFountain 2001)
  4. WebCat control of Print (Palle B. Nielsen (PowerPalle) 2001)
>Anyone got any examples on how to [shell] or [applescript] an application to >print content from a directory, stuffed with documents from WebCat? > >Tutorials are most welcome. > >PowerPalle >The following code converts all text files in /dir/ to type BBedit, and then prints each one using BBedit. You will need to adapt it to a different application if you want to print a different file type.[TEXT SHOW=F]FLIST=|[LISTFILES /dir/][HIDEIF [url][FILENAME][/URL]^Icon][FILENAME]|[/HIDEIF][/LISTFILES][/TEXT][LISTWORDS words=[url][FLIST][/URL]&delimiters=[url]|[/URL]][APPLESCRIPT] try tell application Finder select file [WORD] of folder dir of folder vhost of folder WebStar of disk HDName set creator type of selection to R*ch print selection end tell on error beep end try return [/APPLESCRIPT][/LISTWORDS] While we're on the topic of Applescript, this is another useful snippet of Applescript that keeps Webstar in front and logging turned on. It's run from a Trigger once an hour right below the code I mentioned above.[APPLESCRIPT] try tell application Finder get application file id WWW‡ set appName to name of result end tell tell application appName suspend logging false activate end tell on error end try return [/APPLESCRIPT]Have fun.-Dale -- Dale LaFountain Vice President of Information Technology, WebMaster Dark Horse Comics, Inc. mailto:dalel@darkhorse.com Phone: 503-652-8815 x324 http://www.darkhorse.com/------------------------------------------------------------- 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://search.smithmicro.com/ Dale LaFountain

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:

Documentation Feedback (1997) WebCatalog and WebMerchant reviewed by InfoWorld (1997) Massaging SubTotals (1999) WebCat2 - Getting to the browser's username/password data (1997) re: Large databases in WebCat (1997) Word wrapping (1997) What's New Date (2002) Problems adding stuff to the shopping cart. (1997) Return records from another (1997) Grep Ampersands (2008) [WebDNA] shopping sites and the "old commerce tags" (2012) HELP! Search finding too much! (1998) [WebDNA] Putting '&search' into URL killing all search contexts (2010) unix permissions theory applied to db security? Or...? (2000) Banner DNA (1997) European Dates (1998) Great product and great job ! (1997) Setting vars in a text file..... (2004) Simple Store (2000) Bug? (1997)