• 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: Can't save compiled script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't save compiled script


  • Subject: Re: Can't save compiled script
  • From: Andrea -XFox- Govoni <email@hidden>
  • Date: Mon, 09 Jan 2006 16:57:36 +0100

Bill Cheeseman ha scritto:

> set winner to "7"
> display dialog "Pick a number from 1 to 10:" default answer ""
> if text returned of result is winner then beep
>
> Console reports this error upon attempting to compile the script:
>
> 2006-01-09 08:20:05.270 Script Editor[443] *** NSRunLoop ignoring exception
> '*** -[NSCFString substringWithRange:]: Range or index out of bounds' that
> raised during posting of delayed perform with target 61ace20 and selector
> 'updateElementsList:'

I tracked it down to this problematic command:

if "" is "" then beep

It seems to me that it is a bug.

--
Andrea "XFox" Govoni

AIM/iChat/ICQ: email@hidden
Yahoo! ID: xfox82
Skype Name: draykan

PGP
KeyID: 0x212E69C1
Fingerprint: FBE1 CA7D 34BE 4A53 9639  5C36 B7A0 605F 212E 69C1
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Can't save compiled script
      • From: Adam Bell <email@hidden>
References: 
 >Can't save compiled script (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: similar strings
  • Next by Date: "path to desktop" in a tell Finder statement doesn't work
  • Previous by thread: Can't save compiled script
  • Next by thread: Re: Can't save compiled script
  • Index(es):
    • Date
    • Thread