Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #69603

Re: Alias Strangeness on Shared Volumes

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Jolly Roger <jollyroger@pobox.com>
Newsgroups comp.sys.mac.system
Subject Re: Alias Strangeness on Shared Volumes
Date 8 Feb 2015 23:50:31 GMT
Organization People for the Ethical Treatment of Pirates
Lines 55
Message-ID <cjqb27F17phU1@mid.individual.net> (permalink)
References <0001HW.D0FC02140001F0ECB01029BF@news.astraweb.com> <0001HW.D0FCD452001A2290B01029BF@news.astraweb.com> <cjpbmnFm90uU5@mid.individual.net> <cjpcq8Fm90uU6@mid.individual.net> <0001HW.D0FD5B3B00364F0BB01029BF@news.astraweb.com>
X-Trace individual.net ZPpYh/c+L9b3dwmT1jkeWQvlAtbPSNp/X991a4+k9DZOeomJuj
Cancel-Lock sha1:+f0Ay4kdssEsH16rSD28yP9y2w8=
X-Face _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1<n@LQ!aZ7vLO_nWbK~@T'XIS0,oAJcU.qLM dk/j8Udo?O"o9B9Jyx+ez2:B<nx(k3EdHnTvB]'eoVaR495,Rv~/vPa[e^JI+^h5Zk*i`Q;ezqDW< ZFs6kmAJWZjOH\8[$$7jm,Ogw3C_%QM'|H6nygNGhhl+@}n30Nz(^vWo@h>Y%b|b-Y~()~\t,LZ3e up1/bO{=-)
User-Agent slrn/1.0.1 (Darwin)
Xref csiph.com comp.sys.mac.system:69603

Show key headers only | View raw


On 2015-02-08, Nelson <nelson@nowhere.com> wrote:
> On Sun, 8 Feb 2015 10:14:16 -0500, Jolly Roger wrote
> (in article <cjpcq8Fm90uU6@mid.individual.net>):
>  
>>> I actually wrote exactly such a script a while back. Enjoy:
>>> 
>>> <http://jollyroger.kicks-ass.org/software/Resolve%20Aliases.zip>
>> 
>> In case you are interested, I ran the script and realized it didn't
>> report the number of aliases it found while searching. So I just updated
>> the script to show that, so you have a better indication of how long it
>> will take to process them. 
>
> Well, I took a look at your script and it gave me some ideas.  Thanks.  
> However it appears to have a major shortcoming for what I want to do.  
> This is due to the limitations of Applescript, not your code.
>
> In the case of an alias to a file on an unmounted volume, The Finder's 
> "Show Original" command will go out and mount the volume if it can;  
> whereas the applescript property "original" of the Alias File class 
> will only be populated if the volume is mounted.  Thus it reports 
> aliases to files on other volumes as bad which are actually good.
> 
> Clearly, somewhere in the alias file record is information which points 
> to the original pathname of the original file.  Else how could the 
> finder know to mount the volume?  So I'd like to modify your algorithm 
> to only report an alias as bad if the "original" property is empty 
> _and_ the original volume is the same as the one the alias is on.

It doesn't seem like that will be possible with Finder since you would
need to examine the "original item" property to determine the original
volume. : /

> Also, to catch cloning errors where the alias is not re-homed to the 
> corresponding file on the current drive, if the "original" is empty I'd 
> like to at least display the original volume to differentiate aliases 
> to files which have been deleted from those which merely pointing to a 
> different volume.
>
> Finally, even if the alias points to a nonexistent file on the same 
> volume, I'd like to see the original path displayed to give me some 
> hint of where to start to look for it :)
>
> I don't see a way of doing this in applescript.  Perhaps reading in the 
> raw alias file data and determining the original path that the Finder 
> sees.  But I don't where in the file to find it.  And I'm not sure 
> applescript will allow me to read in the alias file as a binary.

Yeah. I think you'll need to do it in Cocoa/Carbon to do what you want.

-- 
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR

Back to comp.sys.mac.system | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Alias Strangeness on Shared Volumes Nelson <nelson@nowhere.com> - 2015-02-07 17:55 -0500
  Re: Alias Strangeness on Shared Volumes Jolly Roger <jollyroger@pobox.com> - 2015-02-07 23:03 +0000
  Re: Alias Strangeness on Shared Volumes FPP <fredp151@gmail.com> - 2015-02-08 06:07 -0500
    Re: Alias Strangeness on Shared Volumes android <here@there.was> - 2015-02-08 12:17 +0100
    Re: Alias Strangeness on Shared Volumes Nelson <nelson@nowhere.com> - 2015-02-08 07:17 -0500
  Re: Alias Strangeness on Shared Volumes Jolly Roger <jollyroger@pobox.com> - 2015-02-08 13:36 +0000
  Re: Alias Strangeness on Shared Volumes Nelson <nelson@nowhere.com> - 2015-02-08 08:52 -0500
    Re: Alias Strangeness on Shared Volumes Jolly Roger <jollyroger@pobox.com> - 2015-02-08 14:55 +0000
      Re: Alias Strangeness on Shared Volumes Jolly Roger <jollyroger@pobox.com> - 2015-02-08 15:14 +0000
        Re: Alias Strangeness on Shared Volumes Nelson <nelson@nowhere.com> - 2015-02-08 18:28 -0500
          Re: Alias Strangeness on Shared Volumes Jolly Roger <jollyroger@pobox.com> - 2015-02-08 23:50 +0000
      Re: Alias Strangeness on Shared Volumes Nelson <nelson@nowhere.com> - 2015-02-08 13:09 -0500

csiph-web