• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
duplicate filename error, broken file commands in 10.2?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

duplicate filename error, broken file commands in 10.2?


  • Subject: duplicate filename error, broken file commands in 10.2?
  • From: Peter Gort <email@hidden>
  • Date: Sun, 24 Nov 2002 08:41:02 +1100

Hi People,

I am unable to open an existing file using the "open for access" command. I am also unable to read an existing file by just executing "read <path to file>" I get unexpected end of file error (-39).

I have access to 3 computers running 10.2, an iMac 600/1G ram, a Powerbook G4 500/512M ram, and a Powerbook G4 400 382M ram, and all three produce this error. I have had this error since upgrading to 10.2, then 10.2.1 and still there in 10.2.2. One of the computers was upgraded over the top of 10.1, the other two were erase/installs. Still the problem persists. Has anybody else seen this or am I alone in this problem?

Test script....

--begin script
--watch for returns screwed by email formatting
on doesFileExist(pathToFile)
tell application "Finder"
exists alias pathToFile
end tell
end doesFileExist

on run
set theExampleFilePath to (((path to startup disk) as text) & "Developer:Examples:About Examples.rtf")
if doesFileExist(theExampleFilePath) then
open for access theExampleFilePath
close access theExampleFilePath
end if
end run
--end script

The output is as follows:
tell current application
path to startup disk
--> alias "Mac OS X:"
end tell
tell application "Finder"
exists alias "Mac OS X:Developer:Examples:About Examples.rtf"
--> true
end tell
tell current application
open for access "Mac OS X:Developer:Examples:About Examples.rtf"
--> Duplicate file name. Mac OS X:Developer:Examples:About Examples.rtf
_______________________________________________
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.
  • Follow-Ups:
    • Re: duplicate filename error, broken file commands in 10.2?
      • From: John Delacour <email@hidden>
    • Re: duplicate filename error, broken file commands in 10.2?
      • From: John Delacour <email@hidden>
    • Re: duplicate filename error, broken file commands in 10.2?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: FileMaker Pro, get image by reference
  • Next by Date: Re: lock the screen from the keyboard, win a prize
  • Previous by thread: FileMaker Pro, get image by reference
  • Next by thread: Re: duplicate filename error, broken file commands in 10.2?
  • Index(es):
    • Date
    • Thread