• 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: AppleScript create command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript create command


  • Subject: Re: AppleScript create command
  • From: "James J. Merkel" <email@hidden>
  • Date: Tue, 13 Jul 2004 07:15:59 -0700

On Jul 12, 2004, at 10:44 PM, James J. Merkel wrote:

Ok that fixed at least one thing -- Script Editor now shows metadata 1 as the returned value after running the extract command. However, I still can't use get (or set) commands on my object. I still get an "NSInternalScriptError" error on these commands. It seems like AS commands are not getting to my object. Are AS commands sent to the NSApplication and I have to somehow forward them to my object?


Making a little more progress. I added the following to a delegate of NSApplication:


- (BOOL)application:(NSApplication *)sender delegateHandlesKey:(NSString *)key
{
NSLog(@"key = %@", key);
return [key isEqualToString:@"metadata"];
}

-(id)metadata{
NSLog(@"metadata method called");
return [ExifInfo self];
}

I can now access my setter methods. So the following AS works:

set tFilePath to alias ":Users:jamesmer:temp-71.jpg"
tell application "PhotoInfo"
extract new metadata from tFilePath
set model of metadata 1 to "test"
end tell

However, the getter methods don't work. I can't do:

get model of metadata 1

I'm not sure what the metadata method should really do. The above was just a WAG.

Any help is appreciated,
Jim Merkel
_______________________________________________
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.


  • Follow-Ups:
    • Re: AppleScript create command
      • From: Dustin Voss <email@hidden>
References: 
 >AppleScript create command (From: "James J. Merkel" <email@hidden>)
 >Re: AppleScript create command (From: "James J. Merkel" <email@hidden>)
 >Re: AppleScript create command (From: Dustin Voss <email@hidden>)
 >Re: AppleScript create command (From: "James J. Merkel" <email@hidden>)

  • Prev by Date: Re: What do I do with the "Segments"?
  • Next by Date: How do I get an NSColorWell to call an action?
  • Previous by thread: Re: AppleScript create command
  • Next by thread: Re: AppleScript create command
  • Index(es):
    • Date
    • Thread