• 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: AppleScript TID bug OS 10.2.5?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript TID bug OS 10.2.5?


  • Subject: Re: AppleScript TID bug OS 10.2.5?
  • From: Nigel Garvey <email@hidden>
  • Date: Thu, 24 Apr 2003 21:14:22 +0100

Paul Berkowitz wrote on Thu, 24 Apr 2003 10:52:43 -0700:

>On 4/24/03 9:33 AM, "julifos" <email@hidden> wrote:
>
>> set AppleScript's text item delimiters to ":"
>> set folder_ to text items 1 thru -2 of (thisFile as text) & "" as text
>> --> ERROR!!!
>
>That is an extremely weird line of code. Why in the world are you adding ""
>to the end of it?
>
>If this is supposed to be a folder's path, why haven't you added ":" to the
>end of it?

It is a pretty horrible-looking line, but it's the "" that causes the ":"
to be added. It gets concatenated to the list of text items, which is
then coerced to string while the ":" delimiter is still active. Still,
I'd personally write:

set folder_ to text 1 thru text item -2 of (thisFile as text) & ":"

Both seem to work fine on my own 10.2.5 system.

NG
_______________________________________________
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.

  • Prev by Date: Re: Language at a Glance
  • Next by Date: Re: AppleScript TID bug OS 10.2.5?
  • Previous by thread: Re: AppleScript TID bug OS 10.2.5?
  • Next by thread: Re: AppleScript TID bug OS 10.2.5?
  • Index(es):
    • Date
    • Thread