• 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
bug report
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug report


  • Subject: bug report
  • From: Bill Hoffman <email@hidden>
  • Date: Mon, 18 Feb 2002 20:28:07 -0800

since I can't log into the ADC bug report site, I'll post this here and hope that the guys at Apple see this and get it filed (and oh yes, fixed).

description:

run script "theScript" in "theScriptingComponent" fails with an error message when including the "in" parameter to specify an osa scripting component (OS X 10.1.2/AS 1.8.2b1).

------------------------- (from here it's just boring details for completeness' sake) --------------------

my machine is:

iMac DV SE (summer 2000) 500mHz/640 MB RAM

my installed system software components are:

Mac OSX 10.1.2 (only - classic environment not installed)
AppleScript 1.8.2b1
( latest Dev Tools public release also installed, but not related to experience of this error)

my installed scripting componets as reported by the AppleScript "scripting components" command are :

JavaScript
AppleScript Debugger
AppleScript Debugger
AppleScript

my installed scripting components as reported by the "osalang" command from the Terminal are:

JavaScript
AppleScript Debugger
AppleScript
Generic Scripting System

these statements compile correctly, but fail on execution, in a script editing app (Script Debugger 3.0.1) with the osa language component correctly set to AppleScript:

1) run script "var x = 100;" in "JavaScript"

2) set x to scripting components
run script "var x = 100;" in item 1 of x

3) run script "set x to 100" in "AppleScript"

4) set x to scripting components
run script "set x to 100" in item 4 of x

with the error message:

"Script error"

these statements also compile correctly, but fail on execution, in a script editing app (Script Debugger 3.0.1) with the osa language component correctly set to AppleScript:

1) set x to alias "myscript.js" -- (myscript.js compiles and executes properly in the script editing app)
run script x in "JavaScript"

2) set x to alias "myscript.js"
set y to scripting components
run script x in item 1 of y

3) run script "myscript.js" in "JavaScript"

4) set x to alias "myscript.scpt" -- (myscript.scpt compiles and executes properly in the script editing app)
run script x in "AppleScript"

5) set x to alias "myscript.scpt"
set y to scripting components
run script x in item 4 of y

6) run script "myscript.scpt" in "AppleScript"

with the error message:

"Scripting component error"

These statements compile and execute correctly in a script editing app (Script Debugger 3.0.1) with the osa language component correctly set to AppleScript:

1) set x to alias "myscript.scpt" -- (myscript.scpt compiles and executes properly in the script editing app)
run script x

2) run script "myscript.scpt"

3) run script "set x to 100"

4) run script "100 * 100"

********* AND ODDLY ***********

5) run script "100 * 100" in "AppleScript"

6) run script "100 * 100" in AppleScript

7) run script "100 * 100" in item 4 of y

8) run script "set x to 100" in AppleScript (note lack of quotation here)

From the Terminal, these statements fail:

1) osascript -l JavaScript myscript.js
2) osascript -l JavaScript -e 'var x = 100'

with this reporting of error messages:

...
FailOSErr: MacOS error -50
InstallLibraries: JS_ExecuteScript failed
FailOSErr: MacOS error -1750
Component Open Failed
osaComponent called, selector -1 (0xffffffff), result -1750
osaComponent calling, selector -2 (0xfffffffe)
osaComponent called, selector -2 (0xfffffffe), result -1762
osascript: can't open JavaScript scripting component.

From the Terminal, these statements fail:

3) osacompile -l JavaScript -e 'var x = 100;'
4) osacompile -l JavaScript myscript2.js (where myscript2.js is a plain text file of uncompiled code)

with this reporting of error messages:

...
FailOSErr: MacOS error -50
InstallLibraries: JS_ExecuteScript failed
FailOSErr: MacOS error -1750
Component Open Failed
osaComponent called, selector -1 (0xffffffff), result -1750
osaComponent calling, selector -2 (0xfffffffe)
osaComponent called, selector -2 (0xfffffffe), result -1762
osacompile: can't open JavaScript scripting component.

From the Terminal, these statements execute correctly and return the expected result:

1) osascript myscript.scpt
2) osascript -l AppleScript myscript.scpt
3) osascript -e 'set x to 100'
4) osascript -l AppleScript -e 'set x to 100'
5) osascript -l 'AppleScript' -e 'set x to 100'
6) osascript -e '100*100'
7) osascript -l AppleScript -e '100*100'
8) osascript -l 'AppleScript' -e '100*100'


expected results:

none of the above error scenarios should occur. I should be able to use the 'run script' command with the js osa language component in an AppleScript script on OS X 10.1.2 as expected from the AppleScript language specification.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: preflighting a file
  • Next by Date: Re: preflighting a file
  • Previous by thread: RE: Bookmarks View in Acrobat 4
  • Next by thread: Editing aetes
  • Index(es):
    • Date
    • Thread