Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OSACompile preventing double-clicking on files in finder to open!



Title: OSACompile preventing double-clicking on files in finder t
if i first execute:

        defaults write com.victor.jeeves NSScriptingDebugLogLevel 1

and then in my app, i execute the following:

ComponentInstance ci = OpenDefaultComponent( kOSAComponentType, typeAppleScript);
NSAppleEventDescriptor* sourceDesc = [NSAppleEventDescriptor descriptorWithString: source];
OSAID scriptOSAID = kOSANullScript;
OSAError compileErr = OSACompile( ci, [sourceDesc aeDesc], 0,  &scriptOSAID);
if (compileErr == noErr)
     OSADispose( ci,  scriptOSAID);

then if i double click on one of my files in the finder, it doesn't open!
and i see the following in the xcode console:

2009-11-05 15:28:55.510 Jeeves[11209:10b] Command: Standard Suite.open
  Direct Parameter: (
    file://localhost/Volumes/Disk2/Downloads/Jeeves%20Test%20Docs/zzz.jeeves
)
        Receivers: (null)
       Arguments:     {
        "" =         (
            file://localhost/Volumes/Disk2/Downloads/Jeeves%20Test%20Docs/zzz.jeeves
        );
    }
2009-11-05 15:28:55.514 Jeeves[11209:10b] Result: (null)
2009-11-05 15:28:55.514 Jeeves[11209:10b] Error: 1 "Invalid "Open" script command: One (or more) of the direct parameter(s) is a bad specifier."

this is on 10.5.8.

can anyone explain this to me? or does anyone know if this is a known bug (that is perhaps fixed in snow leopard)? and most importantly, can anyone offer a workaround?

thanx,
ken
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.