Re: Converting Aliases to Symbolic Links

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 44040
interpreted = N
texte = It's not really a question of passing the variables in, but rather adding WebDNA variables to your AppleScript code.[text]tVar=BOB[/text][applescript] set asVar to [tVar] [/applescript]This will set the AppleScript variable asVar to the value of the WebDNA text variables tVar. WebDNA always interprets tags and contexts from the inside out, so it will interpret any embedded WebDNA tags prior to compiling and executing the applescript context.- brianAt 9:47 PM +1300 10/10/02, Alain Russell wrote: >Something like this will resolve an alias with applescript .. > >set aFile to filename > >tell application Finder > try > if class of item aFile is alias file then > set aFile to original item of afile as alias > end if > end try >end tell > >afile > >BUT - I just tried to integrate this into webcat and you can't pass >variables into applescript by the looks of it .. Which is a bummer otherwise >you could write a recursive directory checker using [listfiles] > >If any one knows how to pass variables to applescript - speak up now ... > >Alain > >>> Since it appears as though WebCat 4.5 Plugin for WebStar V on MacOSX >>> does not support aliases, does anyone know of a way to convert aliases >>> into symbolic links? I just performed a search on my websites folder, >>> and discovered that there are 101 aliases in numerous locations within >>> that directory structure. To convert these all by hand, I will have to >>> figure out where each alias points; then, using Terminal, I will have to >>> type in the path of each link and to where it should point. This proves >>> to be a daunting and time-consuming task. Does anyone have an >>> suggestions or helpful tips? >>> >>> Thanks, >>> >>> Dennis >> >> Hi Dennis, >> >> We went through the same thing when we upgraded from OS9 to OSX/Apache. >> >> To build a list of all your aliases (and Icon files, for that matter), do >> this: >> >> find /Library/WebServer -size 0c -ls >> >> There may be a way using Applescript in OSX to determine the source >> of the alias and then create a soft link (ln -s) to make it >> apache/webstarV-compatible, but I'm no Applescript wizard. Besides, >> we had so few aliases that I just fixed them by hand once I knew >> where they were. >> >> Good luck. >> >> -Dale >> >> ------------------------------------------------------------- >> 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/ > > >------------------------------------------------------------- >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/ ------------------------------------------------------------- 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: Converting Aliases to Symbolic Links (Dennis J. Bonsall, Jr. 2002)
  2. Re: Converting Aliases to Symbolic Links (Brian Fries 2002)
  3. Re: Converting Aliases to Symbolic Links (Kenneth Grome 2002)
  4. Re: Converting Aliases to Symbolic Links (Alain Russell 2002)
  5. Re: Converting Aliases to Symbolic Links (Dale LaFountain 2002)
  6. Converting Aliases to Symbolic Links (Dennis J. Bonsall, Jr. 2002)
It's not really a question of passing the variables in, but rather adding WebDNA variables to your AppleScript code.[text]tVar=BOB[/text][applescript] set asVar to [tVar] [/applescript]This will set the AppleScript variable asVar to the value of the WebDNA text variables tVar. WebDNA always interprets tags and contexts from the inside out, so it will interpret any embedded WebDNA tags prior to compiling and executing the applescript context.- brianAt 9:47 PM +1300 10/10/02, Alain Russell wrote: >Something like this will resolve an alias with applescript .. > >set aFile to filename > >tell application Finder > try > if class of item aFile is alias file then > set aFile to original item of afile as alias > end if > end try >end tell > >afile > >BUT - I just tried to integrate this into webcat and you can't pass >variables into applescript by the looks of it .. Which is a bummer otherwise >you could write a recursive directory checker using [listfiles] > >If any one knows how to pass variables to applescript - speak up now ... > >Alain > >>> Since it appears as though WebCat 4.5 Plugin for WebStar V on MacOSX >>> does not support aliases, does anyone know of a way to convert aliases >>> into symbolic links? I just performed a search on my websites folder, >>> and discovered that there are 101 aliases in numerous locations within >>> that directory structure. To convert these all by hand, I will have to >>> figure out where each alias points; then, using Terminal, I will have to >>> type in the path of each link and to where it should point. This proves >>> to be a daunting and time-consuming task. Does anyone have an >>> suggestions or helpful tips? >>> >>> Thanks, >>> >>> Dennis >> >> Hi Dennis, >> >> We went through the same thing when we upgraded from OS9 to OSX/Apache. >> >> To build a list of all your aliases (and Icon files, for that matter), do >> this: >> >> find /Library/WebServer -size 0c -ls >> >> There may be a way using Applescript in OSX to determine the source >> of the alias and then create a soft link (ln -s) to make it >> apache/webstarV-compatible, but I'm no Applescript wizard. Besides, >> we had so few aliases that I just fixed them by hand once I knew >> where they were. >> >> Good luck. >> >> -Dale >> >> ------------------------------------------------------------- >> 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/ > > >------------------------------------------------------------- >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/ ------------------------------------------------------------- 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/ 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:

OT: javascript help (2003) HELP!!! (1998) Changes to the List (1997) I'm tired of all this! (2000) Resume Catalog ? (1997) Using Cookie for client specific info? (1997) Problems with [Applescript] (1997) [/application] error? (1997) Moment of Thanks (1997) writing db to disk (1997) Where is f2? (1997) Leap Day Triggers? -confirmation- (2000) Bug alert! (1997) Help! WebCat2 bug (1997) Can you do this??? and other stuff (1997) More help for discount pricing (1998) [Capitalize] (1998) WCS Newbie question (1997) Using [Include] Context (1999) page redirect in webDNA (1997)