Re: Possible bug.
Re: Possible bug.
- Subject: Re: Possible bug.
- From: Deivy Petrescu <email@hidden>
- Date: Tue, 4 May 2004 09:22:27 -0400
At 8:48 AM -0700 5/3/04, Paul Berkowitz wrote:
> According to AS "run script: Run a specified
script or script file". Well, 2^3+1 is a script
according to my Script Editor, thus it is fair
game for run script script.
Yes, but you have to put it into quotes first in order to 'run script': that
makes it 'text' - one of the two formats allowed/
Paul, you do not have to put it into quotes to make it run.
run script 5^4+2
compiles and runs fine.
Here's another script that runs fine in Script Editor:
path to desktop
Now try
run script (path to desktop)
--> ERROR: Scripting component error
Now try
run script "path to desktop"
--> alias "PB G5 HD Panther:Users:berkowit:Desktop:"
I believe this is because of the way run script runs.
It needs a string. Just give it a string.
the string makes it less of a problem when compiling and running.
however:
run script (say "hello world!)
compiles,runs and then errors at the end. (but runs!)
So does:
run script (display dialog "hello world").
Same thing, errors at the end but runs.
I honestly believe the commands run twice. The
run script and then the command itself.
If you sent text this does not happens.
Also, I believe anything that behaves
inconsistently and can throw a scripter off is a
bug.
Well, that's an interesting definition. Some people are thrown off by all
sorts of things in AppleScript, including
set x to 5
:)
I see you narrow your definition of text, but
expands greatly the definition of throw off.
>
>
I do not know if the list is in favor of this or
not, but my personal opinion is anything that
behaves in an inconsistent manner should be
pointed out to the list as a bug, whether
bonified or not by the Apple and the AS team.
We can document it by ourselves.
Sure. If Apple had not yet known about the parser bug, analyzing this
problem would have led them to find it, if they know that
number-to-string-coercion should always work in a 'run script' context. So
it's always good to report these things. Nevertheless, in a practical sense,
they have documented 'run script' to work with text and with script files,
and if you give it what it asks for, there's no bug with 'run script'.
--
Paul Berkowitz
Good, at least we are agreeing in something else
(I agreed with you that long decimals was causing
the problem)!
By the way, we also agree that sending text clears all problems.
--
Regards
Saudagues
Deivy
http://www.dicas.com
_______________________________________________
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.