• 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: ongoing Senior moments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ongoing Senior moments


  • Subject: Re: ongoing Senior moments
  • From: Christopher Stone <email@hidden>
  • Date: Sun, 09 Nov 2014 18:29:20 -0600

On Nov 09, 2014, at 17:11, Shane Stanley <email@hidden> wrote:
In fact, put that inside another app's tell block, like BBEdit or Mail or whatever, and you'll see it's not liked by any app. But if you change it so the path is hard-coded, rather than the result of a handler, like this:

set theFileX to (POSIX file "/Users/shane/Pictures/APOD ƒ/") # The Finder is appeased

Suddenly the Finder et al are happy with it. So it's not the coercion per se that upsets things.
______________________________________________________________________

Hey Shane,

Hmm.  I'd swear that didn't used to work...

Oh, it's this that's a sticky wicket:

set theFileX to POSIX file "/Users/chris/Pictures/APOD ƒ/"

tell application "Finder"
  # alias theFileX # Fails
  theFileX as alias # Works
end tell

It appears I'm having my own senior moment...  :)

Thanks for the correction.

--
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

References: 
 >ongoing Senior moments (From: Robert Poland <email@hidden>)
 >Re: ongoing Senior moments (From: Christopher Stone <email@hidden>)
 >Re: ongoing Senior moments (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: ongoing Senior moments
  • Next by Date: Re: ongoing Senior moments
  • Previous by thread: Re: ongoing Senior moments
  • Next by thread: Re: ongoing Senior moments
  • Index(es):
    • Date
    • Thread