Re: Referencing a folder with "~" in the name
Re: Referencing a folder with "~" in the name
- Subject: Re: Referencing a folder with "~" in the name
- From: Mr Tea <email@hidden>
- Date: Tue, 23 Apr 2002 14:08:02 +0100
This from Simon Forster - dated 23/4/02 01.14 pm:
>
Problem: I cannot reference any folder which starts with a tilde. As soon as
>
one of the folder names in a path contains "~", the OS X script complains. (I
>
understand that "~/" has special meaning in Unix land).
>
I don't see why there should be a problem here, Simon. What are you doing
with the reference, and what is the nature of your OS X script's complaint?
>
How can I reference "folder
>
"remoteMountedDisk:folderName:folderName:~restOfFolderName""? The usual
>
suspects of escaping the tilde or saying (ascii character 126) don't work.
If you are going to precede the path with 'folder' you need the line in a
Finder tell block. If not, you need to use 'alias' instead of folder. In
both cases, your path should have a trailing colon (eww!) if it points to a
folder.
OS X is perfectly happy with items that contain tilde characters in their
names (unlike forward slashes), and there's no reason why it should cause
problems for AppleScript when it's safely tucked away in a string.
HTH
--
"Always remember to warm the pot."
_______________________________________________
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.