[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Finder.pm -- make alias?



At 20.38 -0500 1998.12.23, Eric Dobbs wrote:
>No alias is created and there are no error messages.  The
>'label_and_beep.plx' test script that comes with the glue works,
>so I'm pretty sure everything is installed correctly.

I don't have time to address this right now, but I will at some point.
Thanks for your patience.  I am trying to take care of other things over
the holidays, and hope to be getting back to Mac::Glue soon.


>How do I tell the Finder glue to create an alias?

  my $hd = 'Bourque:';
  my $alias = 'Bourque:Desktop Folder:link';
  symlink($hd, $alias) or die $^E;


>If you can answer that one, how did you figure it out?

symlink() is perl's builtin function to do symbolic links, which are
analagous to Mac OS aliases.


>AppleEvents?  (e.g. mkdir() but for aliases -- or some mac
>equivalent of `ln -s ...`).

And, of course, symlink() is basically the same as ln -s.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch