Error -10000 when running applescript from commandline
Error -10000 when running applescript from commandline
- Subject: Error -10000 when running applescript from commandline
- From: Sven Hoffmann <email@hidden>
- Date: Wed, 20 Apr 2005 17:10:13 +0300
Hi everybody,
I run a script from the commandline with the command:
sven$ osascript /Users/sven/test/CW_build_mhinj.applescript
/Users/sven/test/CW_build_mhinj.applescript:323:342: execution error:
Finder got an error: Can't continue . (-10000)
sven$
The script does nothing more than run codewarrior to build something:
set errorPosixPath to "/Volumes/Schelach.4/work/CW_error_mhinj.txt"
set the theErrorFile to POSIX file errorPosixPath
set thePosixPath to
"/Volumes/Schelach.4/work/SLClient/work/6.3/TS/mhinj/mhinj.mcp"
set the theProjectFile to POSIX file thePosixPath
with timeout of 3600 seconds
tell application "Finder"
activate
open theProjectFile
end tell
tell application "CodeWarrior IDE 4.2.6"
activate
Set Current Target "Carbon Toolbox Release"
Remove Binaries
try
Make Project
on error
Save Error Window As file theErrorFile
end try
Close Project
quit
end tell
end timeout
If I open the exact same script in Script Editor, it runs just fine.
Any ideas?
Thanks everybody.
------------------------------------------------------------------------
------------
Sven Hoffmann
**************************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or the
sender immediately and do not disclose the contents to anyone or make copies.
** eSafe scanned this email for viruses, vandals and malicious content **
**************************************************************************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden