Re: Moving a file to an invisible folder?
Re: Moving a file to an invisible folder?
- Subject: Re: Moving a file to an invisible folder?
- From: John Delacour <email@hidden>
- Date: Wed, 14 Aug 2002 20:06:14 +0100
At 12:34 pm -0500 13/8/02, Steve Herman wrote:
Is it possible to move a file into an invisible folder using plain vanilla
AppleScript (OS 9.x)?
I can get an alias to the "Cleanup At Startup" folder, but so far I haven't
been able to get the syntax correct to move a file into it... When I do
the move outside a tell block I get an error that the file doesn't
understand the move command, and if I tell Finder to move the file, Finder
tells me the invisible folder doesn't exist.
I don't know whether it's possible -- it doesn't seem to be -- and I
don't know why I'd ever want to do it, but it is possible to _create_
a file in an invisible folder as the script below demonstrates. I'm
confined to 8.6 for a couple of days, so I don't know about the
folder you mention.
set tmpF to "" & (path to temporary items)
set f to tmpF & "junk.txt"
open for access file f with write permission
set eof file f to 0
write "junk" to file f
close access file f
tell app "Finder"
open file f using application file id "TBB6"
end
JD
_______________________________________________
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.