Re: do shell script bug
Re: do shell script bug
- Subject: Re: do shell script bug
- From: John Delacour <email@hidden>
- Date: Sat, 10 Aug 2002 09:16:29 +0100
At 4:11 pm -0700 9/8/02, email@hidden wrote:
open text edit. hold down control and option and hit a few keys. Some
random characters and a lot of random whitespace will appear. Save the file
as Unicode 16.
Run this script:
do shell script "cat /path/to/file"
You get the error:
Can't make some data into the expected type.
Unicode tends not to include random characters!
In TextEdit, save a text (not rtf) file named "abg.txt" in you
Documents folder.
Switch to Unicode input and type with the OPTION key down
03b103b203b3
Save the file as Unicode -- it contains the three characters
lower-case "alphabetagamma"
now run
do shell script "cd; cd Doc*; perl -e'
open F, qq(abg.txt) ; print <F>'"
and you will get the contents of the file including the #254#255 at
the beginning.
"~123"
JD
_______________________________________________
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.