• 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: TIDs, my bestest friend
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: TIDs, my bestest friend
      • From: Rob Jorgensen <email@hidden>
    • Re: TIDs, my bestest friend
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: autoInstaller
  • Next by Date: Re: Atomic scripts
  • Previous by thread: TIDs, my bestest friend
  • Next by thread: Re: TIDs, my bestest friend
  • Index(es):
    • Date
    • Thread