Re: File best practice questions
Re: File best practice questions
- Subject: Re: File best practice questions
- From: "Gary (Lists)" <email@hidden>
- Date: Sat, 15 Mar 2008 18:21:34 -0400
- Thread-topic: File best practice questions
"Thomas Summerall" wrote:
> At 06:31 PM 3/14/2008, Gary (Lists) wrote:
>> There is a built-in command for this:
>>
>> path to resources "MyInstalledFolder" in directory "MyStuff"
>
> That's a really good tip, though it didn't work quite as listed...
It works perfectly for me, in two specific bundle-organized applications
I've written. No problems.
> I googled
> it and discovered it's actually
>
> resource path of main bundle
I've never read/heard that form, though I'm not disputing it will work.
(And I didn't test it.)
It seems odd to start by searcing google for a command that you read on your
own machine, rather than just looking at StandardAdditions first.
And, if that's another command that's real (I can't find it OMM), it seems
like it is saying to return the path of the "main bundle", which is not some
thing inside the bundle. And then, you'd have to de-alias (to string) and
add your interior path (as string) and then try to re-alias the constructed
path -- which was what you wanted to avoid doing, right?
And I'd think a citation is in order. Where'd you get that, other than
"google"?
> but it's still pretty useful.
<shrug> The AppleScript syntax, as provided in the dictionary, is useful. I
can't see where knowing, essentially, "path to me", is the same thing.
> But that returns a path string, right?
No. Why don't you try it? Or read the StandardAdditions entry for that
command? It returns an alias.
--
Gary
_______________________________________________
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