• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Applescript and referring to a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Applescript and referring to a folder (From: Rowland McDonnell <email@hidden>)

  • Prev by Date: Re: Determining OS Version
  • Next by Date: Re: Applescript and referring to a folder
  • Previous by thread: Re: Applescript and referring to a folder
  • Next by thread: Re: Applescript and referring to a folder
  • Index(es):
    • Date
    • Thread