Re: as is what?
Re: as is what?
- Subject: Re: as is what?
- From: micro-people <email@hidden>
- Date: Mon, 25 Aug 2003 20:11:25 +0900
thanx to all that replied
what i want to do with AS is to
make it self-compose a song
or convert a normal document into a PlainTalk's singing format
that SimpleText can sing
learning from what people have told me
and to test this:
>
AppleScript will happily write numbers to a file
>
without converting them to text
>
however it seems to have a problem
>
with numbers formatted with the exponental notation,
>
I consider this a bug.
re-wrote a thing like this:
set f to "sarigama:@:as:is" as file specification
set a to 100
set b to "[[pmod "
set c to "]]"
open for access f with write permission
try
write b to f
write a to f
write c & return to f
write "am i ready to sing ?" to f
on error errMes
close access f
error errMes
end try
close access f
and the result of it became like this:
[[pmod
am i ready to sing ?
...mmm.."d" is not what i have expected to be there..
...well yes maybe this:
>
AppleScript automatically coerces some types
>
but you have discovered that it does not automatically coerce numeric types
>
to text in the context of a write command.
is what i fell into from the very beginning
but well maybe i don't care
will use "as text" to safely result into
the singing script
thanks
and will read more deeply what you have sent to me
BUYO-BUYO-IGOR------------------
http://buyobuyo.isgenius.com
"SaRiGaMa's Oil Vending Orchestra"
http://oil.isonfire.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.
References: | |
| >as is what? (From: micro-people <email@hidden>) |