Re: Applescript and referring to a folder
Re: Applescript and referring to a folder
- Subject: Re: Applescript and referring to a folder
- From: Rowland McDonnell <email@hidden>
- Date: Mon, 25 Jan 2010 10:23:08 +0000
Try this:
(In this case destinationFolder has been coerced to an alias)
I'm not sure I understand what that means. I want to /create/
an alias in a particular folder - that folder being identified
by the contents of the variable destinationFolder in your code example.
I don't know how to fill the variable destinationFolder with
data that Applescript will accept as a reference to a folder - I
just get errors.
tell application "Finder"
make new alias to POSIX file thisDocumentX at destinationFolder
end tell
The problem is that I don't know how to make the variable
destinationFolder into a suitable data type.
I just get error messages no matter what I try.
Can someone please show me how to tell Applescript to make an
alias to a particular file in a particular folder?
The bit that I cannot work out myself is how to refer to files
and folders using Applescript variables.
Rowland.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden