Resource folder of library script?
Resource folder of library script?
- Subject: Resource folder of library script?
- From: Jim Brandt <email@hidden>
- Date: Mon, 10 Feb 2014 07:42:31 -0600
I have a large system built for our company. It has multiple scripts that all access script libraries to do some of the functions common to most routines.
Recently, I have need to re-write some of these routines to resolve some of the design deficiencies that have arisen because they surfaced after implementation.
Because of this, I'm also adding to the libraries to collect more common routines.
One of the features I have implemented is the use of Pashua to present dialogs to the users. Up until now, I've only used these from the main script and the dialogs presented were from files stored in the script bundle (or application bundle after turning the script into an application). These were accessed by pointing to the Resource folder in the script or application bundle from the main script.
However, by moving the function to a library file, I also want to move these dialog files to the resource folder of the library script bundle (to keep them with the routine they apply to and not require each script to contain the dialogs used by the library function(s).)
But, the path to me used in the library function not longer applies to the script in the library, but to the main script calling it. So, what is the accepted way (if there is one) to point to the resource folder in a library script bundle?
Or would I be better off putting these dialog files into a separate folder and hard-code it in the library routine or even use the container folder of the library file to get to it?
Thoughts and suggestions?
Tia,
Jim Brandt
_______________________________________________
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