• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Libraries and effiency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Libraries and effiency (From: Tommy Bollman <email@hidden>)
 >Re: Libraries and effiency (From: Tetsuro KURITA <email@hidden>)
 >Re: Libraries and effiency (From: Tommy Bollman <email@hidden>)

  • Prev by Date: Re: Libraries and effiency
  • Next by Date: Re: Libraries and effiency
  • Previous by thread: Re: Libraries and effiency
  • Next by thread: Re: Libraries and effiency
  • Index(es):
    • Date
    • Thread