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]trytell application Finderselect file [WORD] of folder dir of folder vhost of folder WebStar of disk HDNameset creator type of selection to R*chprint selectionend tellon errorbeepend tryreturn [/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 tellon errorend try return [/APPLESCRIPT]Have fun.-Dale-- Dale LaFountainVice President of Information Technology, WebMasterDark Horse Comics, Inc. mailto:dalel@darkhorse.comPhone: 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:
>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]trytell application Finderselect file [WORD] of folder dir of folder vhost of folder WebStar of disk HDNameset creator type of selection to R*chprint selectionend tellon errorbeepend tryreturn [/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 tellon errorend try return [/APPLESCRIPT]Have fun.-Dale-- Dale LaFountainVice President of Information Technology, WebMasterDark Horse Comics, Inc. mailto:dalel@darkhorse.comPhone: 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:
Last Day of the Month (2005)
WebCat2 - [format thousands] (1997)
Announce: WebMerchant 3.0 for Mac shipping now (1998)
Encrypted Templates Serving as Text (2000)
Here's an example of an applet in a tpl (1997)
Faxing orders in place of email (1997)
Whats up with emailer? (1998)
WebCat2b15MacPlugin - [protect] (1997)
2.0 Info (1997)
Setting up shop (1997)
Help with Shipping Costs (1997)
WebCat2b12--[searchstring] bug (1997)
carriage returns in data (1997)
[DOS]/DOS query perhaps OT (2003)
Quickie question on the email templates (1997)
WebCat2: multiple currency support (1997)
&FieldNametype=time unnecessary? (2000)
Almost a there but..bye bye NetCloak (1997)
change the number format (1997)
NT version (1997)