Re: Using script bundles
Re: Using script bundles
- Subject: Re: Using script bundles
- From: Jon Pugh <email@hidden>
- Date: Mon, 14 Jan 2008 16:13:35 -0800
At 4:09 PM -0700 1/14/08, Amandeep Singh wrote:
>We are creating a script library, the natural organization of those
>scripts suggest separate script files. However, this means that user
>will have to include multiple scripts using "load script file" commands.
>And here multiple is > 10
>
>So, I saved the main entry script as a bundle and saved other script
>files as resources. Now the question is
>
>1. Is it possible for the main script to refer to the scripts stored as
>resources in the bundle?
>2. Is it possible for the user of the script bundle to refer to the
>scripts stored as resources in the bundle?
Yes and yes. The "load script" command can take a complete path into a bundle. Since the scripts are just files, they can be stored anywhere, even in a bundle folder.
If the main script is in the bundle, then it can relative paths, but users probably cannot since they need to know where the bundle is, as well as the script location within the bundle, making it problematic for them to get the correct path.
Using a single script allows them to have one line that they paste into all their scripts. Otherwise they need to figure out which of the >10 scripts they need and construct correct paths for as many as they need.
Another option is to just reduce the number of scripts through some form of logical grouping. If you get into the 2-4 range it becomes much less onerous than it is when there are 10+ scripts to manage.
Jon
_______________________________________________
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