• 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: Converting Xcode paths to usable paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting Xcode paths to usable paths


  • Subject: Re: Converting Xcode paths to usable paths
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 02 Dec 2009 18:23:53 -0800
  • Thread-topic: Converting Xcode paths to usable paths

On Wed, 02 Dec 2009 13:49:35 -0600, Steve Mills <email@hidden> said:
>On Dec 2, 2009, at 13:19:24, Matt Neuburg wrote:
>
>> The problem is merely the involvement of the Finder. Do it like this:
>>
>> set f to "/Applications/TextEdit.app/Contents/MacOS/../../../Preview.app"
>> set p to POSIX file f
>> tell application "Finder" to reveal p
>>
>> Ta-daa! m.
>
>Ta-nah. :) What version of OS X are you using? This has the exact same wrong
behavior for me in 10.6.2.

Ta-oops! Greg's answers (coerce to alias) was better. Just add "as alias"
after that last "p" in my code above and it will look as if I had it right.

Scriptable apps are so quirky and various as to exactly what types they are
willing to accept, and what they do when they receive the "wrong" type, that
this can't really be called a bug; it's just the usual AppleScript foo. My
book has a groan on just about every page about this sort of thing... m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: breaking on fast enumeration mutation error?
  • Next by Date: How to Remove "Allow Only Roman Characters" from NSSecureTextField
  • Previous by thread: Re: Converting Xcode paths to usable paths
  • Next by thread: Re: Converting Xcode paths to usable paths
  • Index(es):
    • Date
    • Thread