• 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 : trivial Finder path problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re : trivial Finder path problem


  • Subject: Re : trivial Finder path problem
  • From: Yvan KOENIG <email@hidden>
  • Date: Sat, 10 Dec 2016 14:47:40 +0100

My understanding is that it's your use of alias which isn't correct.

tell application "Finder" to get alias of (POSIX file ("/System/Library/Fonts/" & "Menlo.ttc"))  fails 
but
tell application "Finder" to get (POSIX file ("/System/Library/Fonts/" & "Menlo.ttc")) as alias  behaves flawlessly.


For my own use I would code :

((path to fonts folder from system domain as text) & "Menlo.ttc") as alias


Yvan KOENIG running Sierra 10.12.1 in French (VALLAURIS, France) samedi 10 décembre 2016 14:41:37





 _______________________________________________
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

  • Follow-Ups:
    • Re: trivial Finder path problem
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: simple “repeat with” problem
  • Next by Date: Re: trivial Finder path problem
  • Previous by thread: Re: simple “repeat with” problem
  • Next by thread: Re: trivial Finder path problem
  • Index(es):
    • Date
    • Thread