Re: AppleScript TID bug OS 10.2.5?
Re: AppleScript TID bug OS 10.2.5?
- Subject: Re: AppleScript TID bug OS 10.2.5?
- From: julifos <email@hidden>
- Date: Thu, 24 Apr 2003 17:51:30 +0200
>
If they do it as below, they will not get so confused. A finder
>
item, a file specification, an alias can all be converted simply to a
>
string using
>
>
"" & f or f as string
>
>
and then a far simpler routine followed. They can easily find out
>
where they're going wrong if they look at their event log.
>
>
It is also quite unnecessary to say "Applescript's....."
<snip>
>
set f to f as string
>
set text item delimiters to ":"
>
set folder_ to "" & text items 1 thru -2 of f
>
set file_ to text item -1 of f
>
set text item delimiters to ""
>
{folder_, file_}
>
-- {"dx:System:Library:ScriptingAdditions", "ColorSyncScripting.app"}
Since I'm using <TIDs> or <AS's TIDs> out of a tell block, I don't see real
differences between <TIDs> and <AS's TIDs> (appart from the discussion about
STE, apps owning their own TIDs and so on...).
So, do you think OS 10.2.5 upgrade or some special circumstance can cause
this code to throw an error such as
>
> Can't get text items 1 thru -2 of "path:to:file" <<?
I can't test it, but I'm nearly sure that both <TIDs> and <AS's TIDs> will
throw this error... Or not? (to be or not to be ;-)
JJ
_______________________________________________
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.