• 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
invisible files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

invisible files


  • Subject: invisible files
  • From: email@hidden
  • Date: Mon, 27 Nov 2000 12:49:26 -0800

Thanks to everyone who responded to my "folder of" problem.
The trouble was indeed the conflicting use of folder by
the finder.

I'm now running into another problem. I'm working on a backup
application and I'd like to duplicate a folder of files,
including invisible files. However, the duplicate command
of the finder fails on an invisible file with the error:
"Finder got an error: because *0x//*the original item cannot
be found".

I can sort of understand how the finder might not work
properly with invisible files, but in that case, how does one
duplicate an invisible file?


on run
set myFolder to (choose folder with prompt ("select folder to process"))
set myFolderContents to list folder myFolder
repeat with x in myFolderContents
set thePath to (myFolder as text) & x
set theFile to thePath as alias
if folder of (info for theFile) is false then
tell application "Finder"
duplicate theFile
end tell
end if
end repeat
end run


  • Prev by Date: Folder actions on mounted folders
  • Next by Date: Re: OS X AppleScripts and Unix pipes?
  • Previous by thread: Re: Folder actions on mounted folders
  • Next by thread: Re: OS X AppleScripts and Unix pipes?
  • Index(es):
    • Date
    • Thread