• 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: strangeness getting "path to me"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strangeness getting "path to me"


  • Subject: Re: strangeness getting "path to me"
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 25 Jun 2016 10:30:16 +1000

On 25 Jun 2016, at 8:21 AM, Mitchell L Model <email@hidden> wrote:

Unless my frequent carelessness has intervened, I am getting a very strange result with “path to me”

property pathToMe1 : (POSIX path of (path to me as text))
property pathToMe2 : missing value
set pathToMe2 to (POSIX path of (path to me as text))
{pathToMe1, pathToMe2}

pathToMe1 is the path to Script Editor or Script Debugger
pathToMe2 i the path to the script, which is what I want

The difference is due to the fact that code in property declarations is compile separately, not as part of the overall (until then non-existent) script, at compile time.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: 
 >strangeness getting "path to me" (From: Mitchell L Model <email@hidden>)

  • Prev by Date: strangeness getting "path to me"
  • Next by Date: Re: [OT] RE: Swift [rant, etc]
  • Previous by thread: strangeness getting "path to me"
  • Next by thread: Can a Creation Date be Modified with ASObjC?
  • Index(es):
    • Date
    • Thread