Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppDirectoryContents



A script bundle has .app at the end of it just like any other application would.

Here's a sample path to a script named "Build profile info web page" that's in my "Scripts" folder in the Library folder as seen from the Terminal:

/Library/Scripts/ColorSync/Build\ profile\ info\ web\ page.app/ Contents/Resources/Scripts/main.scpt

I'm not a pathname expert by any stretch so perhaps some of the better AppleScripters can chime in here, but just wanted to show you that the .app extension is certainly included. Whether you can use this pathname with single or double-quotes around it I'm not exactly sure. Notice that in the Terminal it escapes out spaces with a backslash in the pathname. I don't know if this is a requirement in AppleScript when putting in a pathname.

Regards,

Jonathan Piccolo
---------------------------------------------------
email@hidden
http://www.callthemacwizard.com


On Oct 13, 2006, at 8:27 PM, DigitEL wrote:


On Oct 13, 2006, at 5:20 PM, Jonathan Piccolo wrote:

No, it must remain in the path reference because it IS part of the pathname.

Regards,

Jonathan Piccolo

I guess my question at this point is how to reference a script in a sub directory of a script bundle?
So far I can save to one but cannot resolve the reference to run the script.
TIA again!
--
ForNow
DigitEL





_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >AppDirectoryContents (From: DigitEL <email@hidden>)
 >Re: AppDirectoryContents (From: Jonathan Piccolo <email@hidden>)
 >Re: AppDirectoryContents (From: Jonathan Piccolo <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.