Re: Applescript and referring to a folder
Re: Applescript and referring to a folder
- Subject: Re: Applescript and referring to a folder
- From: Luther Fuller <email@hidden>
- Date: Mon, 25 Jan 2010 08:29:50 -0600
On Jan 25, 2010, at 3:04 AM, 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. First you need to look at the line I've marked with "--<<<". What kind of data does "path of this_document" return? (I'm assuming, perhaps incorrectly, that 'path to ...' is from the TeXShop dictionary.)
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. If you want an alias file, you have to ...
tell application "Finder" make new alias file to <fileAlias> at ...
|
_______________________________________________
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