• 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: Double property name in AppleScript problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double property name in AppleScript problem


  • Subject: Re: Double property name in AppleScript problem
  • From: Greg Titus <email@hidden>
  • Date: Tue, 11 Mar 2003 07:25:20 -0800

Hi Gluca,

You need to make sure that the property name has the same 4 character code in each class. When AppleScript compiles your script it converts "property1" into the first matching 4 character code it sees for that word, so you need to make sure that each word you use has the same code everywhere that you use it.

Hope this helps,
- Greg

On Tuesday, March 11, 2003, at 02:49 AM, email@hidden wrote:

Hi, all

in the .scriptSuite of my scriptable application i have two class with the
same property name. If i set x to property1 of class2 the script editor
give me an error 'NSCannotCreateScriptCommand'. Now if i using set x to
property1 of class1 the script run normally without error.
Where is the problem? I suspect that AppleScript make confusion when there
are two equal property name in differents classes.

Class1 --> property 'property1'
Class2 --> property 'property1'

tell application "MyApp"
set x to property1 of class2 -- Error
set x to property1 of class1 -- No error
end tell
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Double property name in AppleScript problem (From: email@hidden)

  • Prev by Date: Multiple Page printing
  • Next by Date: Re: RSize never decreases
  • Previous by thread: Double property name in AppleScript problem
  • Next by thread: Re: Double property name in AppleScript problem
  • Index(es):
    • Date
    • Thread