Re: Libraries and effiency
Re: Libraries and effiency
- Subject: Re: Libraries and effiency
- From: Philip Aker <email@hidden>
- Date: Thu, 12 Aug 2010 06:12:09 -0700
On 2010-08-11, at 12:08:41, Tommy Bollman wrote:
What I'd really like would have been your Osaxes and loaders to just override the load script command of applescript. -If you can.
That load script command should of course fall back to the normal behavior of load script - and run script, if it detects that the path is hardcoded or don't reside within a realm, where loadable modules are to be found.
You mean something like:
set mpath to ((path to scripts folder from user domain) as text) & "Modules:" set really_bad to mpath & "bad.scpt"
on load script theFile set tfile to theFile as text if (theFile is really_bad) then -- fix the file set tfile to mpath & "good.scpt" end if continue load script tfile end load script
?
Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
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