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. Theonly AppleScripts that I have ever attempted to write are the ones thatI can record - and those never work when I am done anyway.That being the case, I was wondering if it were possible to modify thisAppleScript so that it could find the path of the alias, the path of thefile the alias points to, as well as the name of the alias, then writethat info to a file. Then, if this file is written properly (preferablyas a tab delimited database), my business partner (who is very adept atPerl) can write a PerlScript that can delete the original alias, andcreate a symbolic link in its place. If we can come up with this, I amsure that it will help other crossgraders. I will provide thePerlScript, and post both scripts (the PerlScript and AppleScript) backto this list to assist other crossgraders. I just need one of youAppleScript 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:
> 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. Theonly AppleScripts that I have ever attempted to write are the ones thatI can record - and those never work when I am done anyway.That being the case, I was wondering if it were possible to modify thisAppleScript so that it could find the path of the alias, the path of thefile the alias points to, as well as the name of the alias, then writethat info to a file. Then, if this file is written properly (preferablyas a tab delimited database), my business partner (who is very adept atPerl) can write a PerlScript that can delete the original alias, andcreate a symbolic link in its place. If we can come up with this, I amsure that it will help other crossgraders. I will provide thePerlScript, and post both scripts (the PerlScript and AppleScript) backto this list to assist other crossgraders. I just need one of youAppleScript 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)