• 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: Paul Berkowitz <email@hidden>
  • Date: Wed, 03 Jan 2001 20:53:38 -0800

On 1/3/01 8:35 PM, "Joseph Briggs" <email@hidden> wrote:

> I'm kinda new to this, so I can't be exactly sure if I'm right, but couldn't
> you also use:
>
> set yourVariable to characters 1 thru -2 of (path to startup disk as text)
> as text
>
> This is also independent of the Finder (requires Standard Additions) and
> given that the startup disk is every character except the colon of the
> startup disk path, this should work. It seems to me, using the delimiters
> would be more apt for extracting a second, third, etc., or last text item of
> a longer path.

Why? Either will do. It really makes no big difference, but (path to)
requires an osax effort as opposed to pure AppleScript text manipulation
(faster, not that that matters here). More to the point, if you happen to be
already in an application tell block, (path to) can occasionally be a bit
wonky (especially in the Finder).

--
Paul Berkowitz


References: 
 >Re: Referring to the local hard drive (From: Joseph Briggs <email@hidden>)

  • Prev by Date: Re: Monitoring a folder
  • Next by Date: Re: Referring to the local hard drive
  • Previous by thread: Re: Referring to the local hard drive
  • Next by thread: Re: Referring to the local hard drive
  • Index(es):
    • Date
    • Thread