• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is this legit? [POSIX]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Is this legit? [POSIX]
      • From: email@hidden
References: 
 >Is this legit? [POSIX] (From: "Nigel Garvey" <email@hidden>)
 >Re: Is this legit? [POSIX] (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: Is this legit? [POSIX]
  • Next by Date: Re: Is this legit? [POSIX]
  • Previous by thread: Re: Is this legit? [POSIX]
  • Next by thread: Re: Is this legit? [POSIX]
  • Index(es):
    • Date
    • Thread