read file failing from an application bundle
read file failing from an application bundle
- Subject: read file failing from an application bundle
- From: KOENIG Yvan <email@hidden>
- Date: Fri, 30 May 2008 11:38:47 +0200
Hello
I am working on a script trying to repair AppleWorks documents
"resurected" by a recovery tool.
The "resurected" files contains the normal datas and extraneous bytes.
My script search the chunk of bytes signing the end of the normal
datas and set the eof accordingly.
Problem:
when I run it from the script editor, the script works well.
when I run the application or the application bundle,
with some files, the instruction
set leTexte to read file leCheminOriginal_UniText
where leCheminOriginal_UniText is the file's pathname as unicode text
forces the script to quit.
I add that with the same file it works OK from the script editor.
Of course, I may use it from the editor because it's not a script
which is often used but
a - I like to understand why a piece of code fails
b - the read process is faster when we use the application.
Maybe one of you may have a track helping to identify the wrongdoer.
Or maybe someone may give a shell script able to read the text
contents without the met oddity.
Thanks in advance
Yvan KOENIG (from FRANCE vendredi 30 mai 2008 11:38:31)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden