Search the web
Sign In
New User? Sign Up
jsosa · JavaScript OSA-Talk
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
path to me, solved   Message List  
Reply | Forward Message #497 of 529 |
I've figured something out, and wanted to share:

SD has a preference setting for "path to me", causing
that AppleScript command to refer to the document
file itself during debugging, so that it will mimic
its applet/droplet behavior. Unfortunately, this
has never been honored for JSOSA:

Core.me;
//
//=> "/Applications/Script Debugger 4/Script Debugger 4.app"

MacOS.pathToMe();
//
//=> new MacOS.FileSpec("/Applications/Script Debugger 4/Script
Debugger 4.app")

MacOS.appSelf()._file;
//
//=> new MacOS.FileSpec("/Applications/Script Debugger 4/Script
Debugger 4.app")

Note: "._file" replaced the "._path" getter for AEApp
instances in version 2.0.

The key is to make sure you are sending yourself
the actual "path to" AppleEvent, with a "null"
direct parameter:

Me = MacOS.appSelf();
Me.__defineGetter__( 'fspec',
function() {
var ae = new MacOS.AEDesc();
ae.build( "'null'()" );
return this.sendAE( 'ears', 'ffdr', ae );
}
);

Me.fspec;
//
//=> new MacOS.FileSpec("/Users/arthur/Desktop/blah.scpt")

OK, goodnight all.

-- Arthur




Tue Feb 28, 2006 3:48 am

admiralnovia
Offline Offline
Send Email Send Email

Forward
Message #497 of 529 |
Expand Messages Author Sort by Date

I've figured something out, and wanted to share: SD has a preference setting for "path to me", causing that AppleScript command to refer to the document file...
Arthur Knapp
admiralnovia
Offline Send Email
Feb 28, 2006
3:49 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help