• 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: Paul Berkowitz <email@hidden>
  • Date: Thu, 24 Apr 2003 10:52:43 -0700

On 4/24/03 9:33 AM, "julifos" <email@hidden> wrote:

> I posted the code before, but I'll post it again for better exposition:
>
> #################################
> on open these_files
>
> --> <snip>
> --> test "these_files" to make sure user dropped only 1 file
>
> set thisFile to these_files's item 1

an alias
>
> --> <snip>
> --> more unrelated stuff
>
> 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?

(I don't suppose this is related to the error, but you never know.)

And why all those extra 'as text's?

Do you have accents in any folder of the file path? Have you tried 'as
Unicode text' instead of 'as text'? (In this case, set your TIDs to {":" as
Unicode text}.)

> set file_ to text item -1 of (thisFile as text)
> set AppleScript's text item delimiters to {""}
> --> <snip>
> end open
> #################################
>
> So, this code has been working OK for some time, but now there are some
> problem... Perhaps anything about repair permissions, momentary bad luck?...


--
Paul Berkowitz
_______________________________________________
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: AppleScript TID bug OS 10.2.5? (From: julifos <email@hidden>)

  • Prev by Date: Re: AppleScript TID bug OS 10.2.5?
  • Next by Date: Re: Language at a Glance
  • 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