• 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: OS 9 or Classic, that's the question :-)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS 9 or Classic, that's the question :-)


  • Subject: Re: OS 9 or Classic, that's the question :-)
  • From: Michael Slomski <email@hidden>
  • Date: Wed, 29 Oct 2003 10:35:51 +0100

Hello Kat,

> While I can't vouch for the safety of using the Finder's version, Michael,
> you could probably condense your approach. If you also reset the TIDs ("set
> AppleScript's text item delimiters to oldDelims"), your routine would total
> about 15 lines. But there could be a few ways to shorten it...
I comes later, behind the the sample lines :-)

> I assume you're replacing the decimal point with a comma to suit your
> System's numbering format - although that also means that your script may
> not travel too well. (As it stands, it doesn't work on my British system -
> without additional trapping.) In fact, I wonder if TIDs and string-to-number
> coercions are really necessary here at all.

Here in germany
> set myVersion to version
> set myVersion to (last word of myVersion)
Will get "10.3" and this won't make it to a number, so first the dot must
replaced. Not internationally safe :-( but for me it has worked so far.
I'm sure, the next version will take all suggestions from this list and will
a lot more fun :-)


>
> You might, for example, get away with something like this instead:
>
> ------------------
>
> tell app "Finder" to set OS9 to (get version)'s word - 1's item 2 is "."
Interesting, with OS X 10.3 it will return false. I will check it later,
what it will return with OS 9 (no classic)

Regards
Michael
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: OS 9 or Classic, that's the question :-) (From: kai <email@hidden>)

  • Prev by Date: Re: Re(4): Step by step debugging
  • Next by Date: Re: OS 9 or Classic, that's the question :-)
  • Previous by thread: Re: OS 9 or Classic, that's the question :-)
  • Next by thread: Re: OS 9 or Classic, that's the question :-)
  • Index(es):
    • Date
    • Thread