problem with paths
problem with paths
I have a script that has been running for a while and I needed to fix a
part of it to work with akua sweats (not sweet because I am really
working up a sweat). It now does not work saying "rats now I can't
duplicate it! something like scripting additions could not find path to
scripting editions...
For serveral hours if I moved the (path to scripting additions as string)
outside the tell it worked but if inside I got an error. Then it worked
fine. (and I rebooted when it stopped working)
Could this be because the code is scripter compiled scripts and it has
project information with it? I wrote the script on a G3 and was trying
to trouble shoot/improve it on a G4 450 dual. (both with 9.0.4)
if I pull the (path to scripting additions) outside of the tell finder
block it is fine but then the exists file is not going to work real
well... so why did this stop working? (code was started on 8.6 but is
running on 9.0.4 (a G3) but not on 9.0.4 a G4....
tell application "Finder"
if exists file (((path to scripting additions as string) &
"txtLib.library") as string) then
set kLogLib to load script (((path to scripting additions as string) &
"txtLib.library") as string) as alias
else
display dialog "PhotoSlug is missing the file <txtLib. library>. Find
it, put it in Scripting additions folder and restart PhotoSlug.
See the PhotoSlug.Doc for more information."
error -128
end if