Re: Is this legit? [POSIX]
Re: Is this legit? [POSIX]
- Subject: Re: Is this legit? [POSIX]
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 24 Jul 2008 10:05:33 -0400
On Thu, Jul 24, 2008 at 9:55 AM, Nigel Garvey
<email@hidden> wrote:
> Unfortunately, my Jaguar system doesn't recognise the "readlink" command,
> but that's not the end of the world! :)
Yeah, the "readlink" shell command is a relatively recent innovation
in UNIXland; traditional practice was to use "ls" and pick the output
apart (with awk/cut/sed/whatever). Somewhere in between the
traditioinal practice and the advent of readlink was the advent of
Perl, and if you use *its* readlink() function, it should work
everywhere, including Jaguar:
set timezone_posix_path to (do shell script "perl -le 'print
readlink(\"/etc/localtime\")'")
although I personally feel that the "defaults" technique is more
apropos for an Applescript.
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden