Finder: files on network home directories
Finder: files on network home directories
- Subject: Finder: files on network home directories
- From: "Adam K. Wuellner" <email@hidden>
- Date: Tue, 28 Sep 2004 11:55:03 -0500
Consider the following:
---
choose file
tell application "Finder" to get container of result
---
Running the above, and choosing a file on the current user's desktop,
produces the following when the user's home directory is on the local
machine (perhaps even constrained to the startup disk of Finder):
-->folder "Desktop" of folder "username" of folder "Users" of startup
disk of application "Finder"
When the current user is in an OD directory, and the home folder is
hosted on an AFP server, the following error is thrown:
“Finder got an error: Can't get container of file
"Users:username:Desktop:file"”
[ the POSIX path to the file in this case is:
/private/Network/Servers/server.domain.tld/Users/username/Desktop/file
]
What I'm trying to do is create a PDF Services script to add letterhead
to a document and save the finished PDF file. At the end of the
script, I tell Finder to update the container of the new PDF file, but
I get the above error when the user saves the PDF to his
(network-hosted) home directory. Everything else works fine - the file
is created properly at the chosen location, it just barfs on updating
the container.
Perhaps updating the container is not necessary - I can't recall
exactly why it's there - but how would I go about this in the
network-hosted user environment?
Thanks,
Adam W
_______________________________________________
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