AS bug: folder name conflicts with app
AS bug: folder name conflicts with app
- Subject: AS bug: folder name conflicts with app
- From: Ray Robertson <email@hidden>
- Date: Tue, 17 Sep 2002 21:27:16 -0400
Here's a strange AppleScript bug which I've already had confirmed by three
other scripters. It has been reported to Apple, but I'm also posting it here
for everyone's information.
The basics: A script application in OSX will fail to run if it is located on
the same level as a folder named "Support Files". When launching the script
in this circumstance, the Quit/Run Startup Screen will first display even
though it was disabled when the script was saved. Then when hitting Run, a
"program error" -1344 is given (a few times, I got -1408 under slightly
different circumstances; Duane Mitchell reports getting error -1312).
To reproduce in OSX v10.2...
1. Create a simple script (I just put "beep" in mine) in SD or SE.
2. Save it as an application with no startup screen to any location (I would
suggest the Documents folder here).
3. In the Finder, go to the Documents folder and launch the script. It
should run correctly and quit.
4. In the same folder as the script (Documents), create a folder named
"Support Files" exactly (case doesn't matter).
5. When you next launch the script, it will show the startup screen and then
give the error after you click Run.
The script runs fine within SE or Script Debugger. I can find no variations
on the folder name "Support Files" which also cause a failure. Renaming it
"Support files2" or "Support_files" or any other variation I've used with
one or both words results in the script then running again.
This problem appeared to exist in OSX v10.1.5 as well--I just wasn't able to
track down until running v10.2. I have no idea if it goes back to earlier
versions of X, or if it is only tied to AS 1.8.3.
I do hope that "Support Files" is the only name conflict, but now know
something new to try when running into future inexplicable script errors.
Ray Robertson
Scripting Matters, Inc.
email@hidden
APPLESCRIPT PRO SESSIONS | NEW ORLEANS | NOVEMBER 4-8, 2002
http://www.scriptingmatters.com/aspro
_______________________________________________
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.