This line of code:
set vProgramLoc to (path to me as string) & "Contents:Resources:Scripting Additions:My App.app" as string
works fine for me when I build my code as a "Development" build and vProgramLoc is set to something like this:
"MacBook HD:Users:spkane:svn:working:Hijack_iTunes:build:Development:Hijack iT!.app:Contents:Resources:Scripting Additions:Extra Suites.app
however when I change it to a "Deployment" this get serious broken and instead returns this:
"MacBook HD:Users:spkane:svn:working:Hijack_iTunes:build:Deployment:Hijack iTunes.app:Contents:MacOS:Hijack iTunesContents:Resources:Scripting Additions:Extra Suites.app"
It is returning:
"MacBook HD:Users:spkane:svn:working:Hijack_iTunes:build:Deployment:Hijack iTunes.app:Contents:MacOS:Hijack iTunes"
as the (path to me) under Deployment, but:
"MacBook HD:Users:spkane:svn:working:Hijack_iTunes:build:Development:Hijack iT!.app"
as the (path to me) under Development.
Is this expected for some reason? Any ideas what I can do to get this to not change behavior?
Thanks, Sean ------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------- "When we destroy something man has created we call it vandalism...... When we destroy something that Mother Nature has created we call it progress." |