• 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
Error geetting offset of char in errMsg
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error geetting offset of char in errMsg


  • Subject: Error geetting offset of char in errMsg
  • From: Paul Skinner <email@hidden>
  • Date: Tue, 12 Jun 2001 03:04:43 -0400

Sorry for the double post. I blew the subject on the first one.

try
{"a", "b", "c"} as date
on error message
message -->"Can't make {\"a\", \"b\", \"c\"} into a date."
set theListTextStart to the offset of "{" in message
-->12 when stepped. 0 when run.
set theListTextEnd to the offset of "}" in message
-->26 when stepped. 0 when run.
return {theListTextStart, theListTextEnd}
--{12, 26} when stepped. {0, 0} when run.
end try

Why is there a discrepancy in the results of this script when stepped in
Scripter and when it is run? And don't automatically point at Scripter, SE
returns {0,0}. Why?
--
Paul Skinner


References: 
 >Re: Getting the name of a file from an "alias" (From: Timothy Bates <email@hidden>)

  • Prev by Date: Re: Getting the name of a file from an "alias"
  • Next by Date: Moving grouped objects in Quark 4.11
  • Previous by thread: Re: Getting the name of a file from an "alias"
  • Next by thread: Re: Getting the name of a file from an "alias"
  • Index(es):
    • Date
    • Thread