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:

Help! WebCat2 bug (1997) wc 2 pro users - sites, quotes wanted (1997) Reminder for beta testers (2000) [WebDNA] How to use [function] (2012) Formatting of email on NT (1998) suffix mapping for NT? (1997) Sorting error (1997) Database flushing does not work any more... (2000) Subtotal help (1997) OT - royalty free images (2002) WebCatalog-NT?'s (1996) Using grep to parse Canadian Postal Codes (2002) with Link i need to (1997) customer info (2001) More on the email templates (1997) 2.0.1: Shopping Carts deleted after 1 hour (1997) So when do we get something similar? (1998) [ListFiles] & [loop] (1998) Nested tags count question (1997) Banners (1997)