Re: TIDs, my bestest friend
Re: TIDs, my bestest friend
- Subject: Re: TIDs, my bestest friend
- From: email@hidden
- Date: Wed, 7 Aug 2002 14:16:01 -0700
I found the problem.
It was not anything to do with the number of things loaded and the
misdirection inherent there, but rather the stack and the fact that, many,
many calls up, I had an "ignoring punctuation and white space" block, which
I was executing inside of.
Oh, for a good debugger....
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Seth A. Roby
Scriptwriter Intern
"Life is like an exploded clown. It's really funny until you figure out
what just happened."
email@hidden
Sent by: To: email@hidden
applescript-users-admin@list cc:
s.apple.com Subject: TIDs, my bestest friend
08/07/2002 10:51 AM
I have this function defined in a loadable script called "common":
to allTextItems out of inString between inDelimiters
set keepSafe to AppleScript's text item delimiters
set AppleScript's text item delimiters to inDelimiters
set retval to text items of inString
set AppleScript's text item delimiters to keepSafe
return retval
end allTextItems
If, in common's run, I do this:
set settings to do shell script "appletalk -s"
set allSettings to allTextItems out of settings between {ASCII
character 13}
allSettings
it gives me what I'd expect: each line, all together in a big list.
However, if I load this script into a script "Foo", and then have a script
"Bar" load "Foo", using this code:
set settings to do shell script "appletalk -s"
tell myFoo's common to set allSettings to allTextItems out of
settings between {ASCII character 13}
allSettings
gives me the contents broken up not only at the <CR>s, but also at the
spaces and the periods.
But if I just do the equivalent in Foo, (ie using a "tell common"), the
result is what it should be.
Why in heaven's name is that?
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Seth A. Roby
Scriptwriter Intern
"Life is like an exploded clown. It's really funny until you figure out
what just happened."
_______________________________________________
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.
_______________________________________________
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.