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...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

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
Can't trap MacOS.OSA errors.   Message List  
Reply | Forward Message #428 of 529 |
var scpt = new MacOS.OSA(MacOS.OSA.AppleScript);
try
{ scpt.compile( 'AppleScript compile-time error' );
}
catch(e) { MacOS.message( 'I never see this...' ) }
finally { MacOS.message( '... or this either.' ) }


var scpt = new MacOS.OSA(MacOS.OSA.AppleScript);
try
{ scpt.compile( '1 / 0' ); //-> compiles
scpt.execute(); //-> divide by 0 error
}
catch(e) { MacOS.message( 'I never see this...' ) }
finally { MacOS.message( '... or this either.' ) }


In addition to the ability to trap such errors, I'd like to request
that errors with MacOS.OSA compile() and execute() throw more
information as a part of the exception:

try
{ scpt.compile( '...' );
}
catch( e )
{ e.rangeOffsets; //-> [x, y], starting and ending offsets in the
// source code where parser encountered an error

// if getting the ending offset isn't easily implementable for
// some reason, just the starting offset would be nice:
//
e.sourceOffset;
}

{ Arthur J. Knapp;
<mailto:arthur@...>;

What...? Oh...!
}




Thu Dec 18, 2003 6:23 pm

admiralnovia
Offline Offline
Send Email Send Email

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

var scpt = new MacOS.OSA(MacOS.OSA.AppleScript); try { scpt.compile( 'AppleScript compile-time error' ); } catch(e) { MacOS.message( 'I never see this...' ) } ...
Arthur Knapp
admiralnovia
Offline Send Email
Dec 18, 2003
6:24 pm

... Bug filed. Cheers -Mark ... Mark Alldritt Late Night Software Ltd. Phone: 250-380-1725 333 Moss Street FAX:...
Mark Alldritt
malldritt2000
Offline Send Email
Dec 18, 2003
6:51 pm

I upgraded to FileMakerPro 7.0 from version 5.5. The following is no longer working to access the value of the field. aName =...
Hardy Machia
hardymacia
Online Now Send Email
Mar 19, 2004
1:33 am

... I've not had a chance to look at the FMP7 scripting interface, but it looks like the name of something may have changed. I seem to recall the notion of ...
Mark Alldritt
malldritt2000
Offline Send Email
Mar 19, 2004
4:14 pm

Date: Fri, 19 Mar 2004 08:14:26 -0800 ... Hi Mark, It's been almost a year so I decided to try to update my databases to FileMaker 7.0 again. I forgot that it...
Hardy Machia
hardymacia
Online Now Send Email
Mar 8, 2005
5:23 am

PS: Here is the AppleScript that does what I want: tell application "FileMaker Pro" tell current record of layout "Data Entry View" set userID to cell "User...
Hardy Machia
hardymacia
Online Now Send Email
Mar 8, 2005
2:59 pm

... I don't have FileMaker, so... what happens when you simply do this? fmp = MacOS.appBySignature( 'FMP7' ); fmp._strict = false; userID = fmp.layout[ 'Data...
arthur@...
admiralnovia
Offline Send Email
Mar 8, 2005
4:53 pm

... Thanks for the help. Here is the error I get... AppleScript Error TypeError: fmp.layout['Data Entry View'].current_record.cell has no properties The result...
Hardy Machia
hardymacia
Online Now Send Email
Mar 9, 2005
2:15 am

While, I try to figure out how to access a cell in a FileMaker 7.0 database, I figured I should try some work arounds. I can get the string data to a variable...
Hardy Machia
hardymacia
Online Now Send Email
Mar 10, 2005
6:39 am

... Note to self - RTFM... While this is a long about way around to get and set field values in FM 7 - I'm embedding AppleScript inside of the JavaScript...,...
Hardy Machia
hardymacia
Online Now Send Email
Mar 10, 2005
2:37 pm

... Yes, it works both ways: set utc to run script "new Date().toUTCString()" in "JavaScript" -- --> "Thu, 10 Mar 2005 15:33:38 GMT" Cheers, Arthur J. Knapp...
arthur@...
admiralnovia
Offline Send Email
Mar 10, 2005
3:35 pm
Advanced

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