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: Tue, 26 Jan 2010 12:38:26 +0000
Rowland McDonnell wrote:
tell application "TeXShop"
repeat with this_document in documents
set this_documentX to path of this_document as string --<<<
set this_documentM to this_documentX
tell application "Finder"
make new alias to POSIX file this_documentX
end tell
end repeat
end tell
I use Textures, not TeXShop, so I don't have TeXShop installed and I can't see its dictionary.
TeXshop can be downloaded as a stand-alone app without needing
to add a TeX distro.
<http://www.uoregon.edu/~koch/texshop/texshop.zip>
36.4 megabytes download; quite harmless to install.
I appear unable to answer your technical questions about
Applescript and TeXShop because I'm very ignorant of Applescript.
First you need to look at the line I've marked with "--<<<".
What kind of data does "path of this_document" return?
I do not know and I do not know how to find out.
(I'm assuming, perhaps incorrectly, that 'path to ...' is from
the TeXShop dictionary.)
I don't know anything about that at all.
Also, its not clear if you want an alias to the file or if you really
want to create an alias file to the document.
I don't understand that question.
If you want an alias file, you have to ...
tell application "Finder"
make new alias file to <fileAlias> at ...
I am confused by this. I do not recognise <fileAlias> as an
Applescript language element and I don't know what you mean when
you distinguish `alias to the file' or `create an alias file'.
I want to create an alias to the file in question so that when I
look in the Finder, I can see that alias to the file in a folder.
I need a file system pointer to manipulate inside Applescript to
achieve this.
I've been having trouble obtaining and then working with such a
file system pointer.
I am aware that there seems to be some confusion in Applescript
over what is meant by the term `alias', which appears to be a
term with more than one definition. I do not understand the term
`alias' in Applescript due to having to work out what it means
from examples, but the examples being ambiguous due to this
overloading of the term `alias'.
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