• 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: Christopher Stone <email@hidden>
  • Date: Fri, 09 Dec 2016 15:42:07 -0600

On Dec 09, 2016, at 14:48, Mitchell L Model <email@hidden> wrote:
The following works:
tell application "Finder" to get alias POSIX file ("/System/Library/Fonts/" & "Menlo.ttc")


Hey Mitchell,

You mean it doesn't work.

-------------------------------------------------

# This doesn't work either:
set pfVar to "/System/Library/Fonts/" & "Menlo.ttc"
tell application "Finder" to get alias POSIX file pfVar

-------------------------------------------------

# Works:
set myAlias to alias POSIX file pfVar

-------------------------------------------------

Rule of the thumb – DON'T fiddle with posix paths and posix files in the Finder.

You will get burned at some point.

--
Take Care,
Chris

 _______________________________________________
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: Mitchell L Model <email@hidden>
References: 
 >trivial Finder path problem (From: Mitchell L Model <email@hidden>)

  • Prev by Date: simple “repeat with” problem
  • Next by Date: Re: simple “repeat with” problem
  • Previous by thread: trivial Finder path problem
  • Next by thread: Re: trivial Finder path problem
  • Index(es):
    • Date
    • Thread