• 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: Referring to the local hard drive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Referring to the local hard drive


  • Subject: Re: Referring to the local hard drive
  • From: "Pre Press Services" <email@hidden>
  • Date: Thu, 4 Jan 2001 12:10:32 -0700

> ... condition is that AppleScript's text item delimiters are {""}
> When they are different, e.g. {":"}, then:
>
> set diskName to characters 1 thru -2 of (path to startup disk as text) as
text
> -->"M:a:c:i:n:t:o:s:h: :H:D"
>
> set diskName to text 1 thru -2 of (path to startup disk as text)
> -->"Macintosh HD"
>
> Using "text" instead of "characters" is shorter, faster and... immune
> to text item delimiters which have not been restored to {""}.
>
>
> Regards,
>
> Hans
>
> ---
> Hans Haesler | email@hidden

Ahhhh! I was testing a script a while back and kept getting just what you
show in the first example with a ":" in between each letter. I had no idea
what was going on. Now I understand that I was setting the text item
delimiter to ":" then asking for characters and getting the mess described
above. Thanks!

----
Joseph Briggs < email@hidden >
< email@hidden >


  • Prev by Date: Re: Simple Question: Record List to value List
  • Next by Date: Re: Those Darn Email Character Mappings
  • Previous by thread: Re: Referring to the local hard drive
  • Next by thread: RE: Referring to the local hard drive
  • Index(es):
    • Date
    • Thread