Re: Converting Aliases to Symbolic Links

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 44047
interpreted = N
texte = > 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 > > afileFirst of all, I want to say that I know nothing about AppleScript. The only AppleScripts that I have ever attempted to write are the ones that I can record - and those never work when I am done anyway.That being the case, I was wondering if it were possible to modify this AppleScript so that it could find the path of the alias, the path of the file the alias points to, as well as the name of the alias, then write that info to a file. Then, if this file is written properly (preferably as a tab delimited database), my business partner (who is very adept at Perl) can write a PerlScript that can delete the original alias, and create a symbolic link in its place. If we can come up with this, I am sure that it will help other crossgraders. I will provide the PerlScript, and post both scripts (the PerlScript and AppleScript) back to this list to assist other crossgraders. I just need one of you AppleScript savvy coders to assist with this.Thanks,Dennis------------------------------------------------------------- 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)
> 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 > > afileFirst of all, I want to say that I know nothing about AppleScript. The only AppleScripts that I have ever attempted to write are the ones that I can record - and those never work when I am done anyway.That being the case, I was wondering if it were possible to modify this AppleScript so that it could find the path of the alias, the path of the file the alias points to, as well as the name of the alias, then write that info to a file. Then, if this file is written properly (preferably as a tab delimited database), my business partner (who is very adept at Perl) can write a PerlScript that can delete the original alias, and create a symbolic link in its place. If we can come up with this, I am sure that it will help other crossgraders. I will provide the PerlScript, and post both scripts (the PerlScript and AppleScript) back to this list to assist other crossgraders. I just need one of you AppleScript savvy coders to assist with this.Thanks,Dennis------------------------------------------------------------- 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/ Dennis J. Bonsall, Jr.

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:

WebCat2 - [format thousands] (1997) how to include a name in from or to using Sendmail? (2003) WebDNA-Talk Digest mode broken (1997) [OT] md5 or sha-1 on OSX (2007) Cart date/time (2006) RE: Automatic thumbnail images (1998) WebCat2 Append problem (B14Macacgi) (1997) Multiple prices (1997) displaying New products (using [date]) (1997) Version f1 status (1997) [ShowNext] (1997) WebCatalog can't find database (1997) Random ads (1998) The IBC root beer has arrived! (1997) Redirect and passing more than one variable... (2002) shoppingcart reload qty (1997) WCS Newbie question (1997) Date sorting (1997) Math (1997) WC2f3 (1997)