Re: AppleScript in WebDNA

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49646
interpreted = N
texte = [applescript] has no knowledge of what local is - you need to fully qualify the file's location.- brianOn Friday, April 18, 2003, at 10:46 AM, Charles Kline wrote:> Mac OS 9.x > WebDNA 4.5 > > When using [applescript] does applescript assume that the path to a > file is local if you don't give it a path? > > ie: > > [applescript] > property destFldr : temp > property theFile : temp.jpg > property theName : test > > tell application GraphicConverter > activate > open {theFile} > save window 1 in (destFldr & theName & .jpg) as JPEG > scale window 1 horizontal 0.1 vertical 0.1 > save window 1 in (destFldr & theName & x & .jpg) as JPEG > close window 1 > end tell > [/applescript] > > Gives me an error that the file can not be found. Any help would be > great. > > Thanks > Charles > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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:

    
  1. Re: AppleScript in WebDNA (Brian Fries 2003)
  2. AppleScript in WebDNA (Charles Kline 2003)
[applescript] has no knowledge of what local is - you need to fully qualify the file's location.- brianOn Friday, April 18, 2003, at 10:46 AM, Charles Kline wrote:> Mac OS 9.x > WebDNA 4.5 > > When using [applescript] does applescript assume that the path to a > file is local if you don't give it a path? > > ie: > > [applescript] > property destFldr : temp > property theFile : temp.jpg > property theName : test > > tell application GraphicConverter > activate > open {theFile} > save window 1 in (destFldr & theName & .jpg) as JPEG > scale window 1 horizontal 0.1 vertical 0.1 > save window 1 in (destFldr & theName & x & .jpg) as JPEG > close window 1 > end tell > [/applescript] > > Gives me an error that the file can not be found. Any help would be > great. > > Thanks > Charles > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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/ Brian Fries

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:

RE: TeaRoom (1997) listfields for a table (2007) 2.1b3 --> way slow (1997) Include a big block of text (1997) No Line Breaks Appearing (2000) WebCommerce: Folder organization ? (1997) ODBC problems between webcatalog and filemaker pro (2001) Word-And searches (2000) anyone know how to restart dbserver on NT automatically (1999) WebCat2b12 - nesting [tags] (1997) Webcatalog and foreign languages (1998) Paramater Passing Value (2002) Re1000001: Setting up shop (1997) Another bug to squash (WebCat2b13 Mac .acgi) (1997) TeaRoom (2000) Weird bug, or is there something amiss? (1997) Aaron kant add (or whatever it was) (2000) WebMerchant Process Orders errors (2000) Code database (1998) [isfolder] and [filename] (1997)