Re: OT - AppleScript Request
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 55819
interpreted = N
texte = http://www.macosxhints.com/article.php?story=20031223150348992If you can drop in the [source] and [destination] foo and foo.ziprespectively in the example below, you should be able to create template formaking a zipped archive that can be downloaded.Try modifying this pseudo-code in webdna for files other than Foo:[Shell]ditto -c -k -keepParent -rsrc Foo Foo.zip[shell]
dowload zipped version of Foo here!There may also be other commands that work too from the shell. This wouldbe preferable to call within webdna because Applescript is slower and Unixcode is generally more portable. What if you need to put this on Linux fora while? If you're having trouble downloading the archive and you know it's beencreated, make sure Apache (or your web server) will permit certain files tobe downloaded. Bill> Larry,> > You the same results (if I understand your need correctly) by wrapping> the founditems in a writefile context and then giving the resulting> file a weird extension. Return an HTML page with a link to that file.> Clicking that link should cause browsers to download the file rather> than display it.> > > > Dave Hurley> Department of Biology> University of Washington> > > On Jan 30, 2004, at 1:56 PM, Larry Hewitt wrote:> >> Hello, folks,>> >> I have what should be a simple AppleScript request for anyone wishing>> to make a little cash on the side. I do not do AppleScript - too busy>> struggling to make a living to do fun stuff these days.>> >> I would be willing to purchase an Applescript that does the following:>> >> In OSX (Jaguar), if you select a folder while holding the CONTROL key,>> you can CREATE ARCHIVE - a zip file of the folder or document.>> >> I would like to do that within WebCat, running as AppleScript to>> perform the function (it does not RECORD, so I am already over my>> head. I am at least smart enough after 52 years to now that much).>> My intent is to deliver database queries as text files in a manner>> that will not load in a browser, preferably zipped.>> >> Please feel free to contact me off-list if you want to talk.>> >> Thanks.>> >> Larry>> >> >> >> Larry Hewitt 360.807.1100 OFFICE>> HCO, LLC 360.807.1103 FAX>> 1133 Kresky NE #106 360.508.6231 CELL>> Centralia, WA 98531 larryh@hewittco.com>> www.hewittco.com www.votewashington.org>> >> >> ------------------------------------------------------------->> 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/>> > > > -------------------------------------------------------------> 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/-------------------------------------------------------------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:
http://www.macosxhints.com/article.php?story=20031223150348992If you can drop in the [source] and [destination] foo and foo.ziprespectively in the example below, you should be able to create template formaking a zipped archive that can be downloaded.Try modifying this pseudo-code in webdna for files other than Foo:[shell]ditto -c -k -keepParent -rsrc Foo Foo.zip[shell]dowload zipped version of Foo here!There may also be other commands that work too from the shell. This wouldbe preferable to call within webdna because Applescript is slower and Unixcode is generally more portable. What if you need to put this on Linux fora while? If you're having trouble downloading the archive and you know it's beencreated, make sure Apache (or your web server) will permit certain files tobe downloaded. Bill> Larry,> > You the same results (if I understand your need correctly) by wrapping> the founditems in a writefile context and then giving the resulting> file a weird extension. Return an HTML page with a link to that file.> Clicking that link should cause browsers to download the file rather> than display it.> > > > Dave Hurley> Department of Biology> University of Washington> > > On Jan 30, 2004, at 1:56 PM, Larry Hewitt wrote:> >> Hello, folks,>> >> I have what should be a simple AppleScript request for anyone wishing>> to make a little cash on the side. I do not do AppleScript - too busy>> struggling to make a living to do fun stuff these days.>> >> I would be willing to purchase an Applescript that does the following:>> >> In OSX (Jaguar), if you select a folder while holding the CONTROL key,>> you can CREATE ARCHIVE - a zip file of the folder or document.>> >> I would like to do that within WebCat, running as AppleScript to>> perform the function (it does not RECORD, so I am already over my>> head. I am at least smart enough after 52 years to now that much).>> My intent is to deliver database queries as text files in a manner>> that will not load in a browser, preferably zipped.>> >> Please feel free to contact me off-list if you want to talk.>> >> Thanks.>> >> Larry>> >> >> >> Larry Hewitt 360.807.1100 OFFICE>> HCO, LLC 360.807.1103 FAX>> 1133 Kresky NE #106 360.508.6231 CELL>> Centralia, WA 98531 larryh@hewittco.com>> www.hewittco.com www.votewashington.org>> >> >> ------------------------------------------------------------->> 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/>> > > > -------------------------------------------------------------> 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/-------------------------------------------------------------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/
William DeVaul
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:
Country & Ship-to address & other fields ? (1997)
The code, one more time. (2003)
WCf2 and nested tags (1997)
Another Large Database Questions (1997)
Web Merchant process after credit card clears (1998)
Date Calulation (1997)
WebCat2 beta FTP site (1997)
Multiple 'Users.db' files not possible (1997)
[WebDNA] To be or not to be friendly (URLs) (2011)
[isfile] ? (1997)
https validation (2001)
Error: Can't open order file. Ignoring [OrderFile] context (2000)
[WebDNA] Grep everything and replace with asterisks? (2010)
How do I get Google to crawl a WebCat site? (2003)
best way to limit # of attempts to login to protected page? (2000)
rotating thumbnails (1997)
Email within tmpl ? (1997)
triggering an update of two frames (1998)
[shownext max=?] armed (1997)
What am I missing (1997)