I trying to figure out how to programmatically save and edit a Service
application Launchd script in OS X. Unfortunately, Library/LaunchDaemons
requires authorization for access.

I've played with an AppleScript to move a temp file into the LaunchDaemons
folder. While it sort of works, The Authorization window doesn't get focus
when it is displayed. I'm using:

on run {SourceFile, DestinationFolder}
    tell application "Finder"
        move SourceFile to DestinationFolder
    end tell
end run

Christian's AuthorizeMBS stuff was pretty opaque to me.

Looking at declares, I ran across Jonathan Johnson's Authorization example
at http://www.maccoding.com/rbexamples/Authorization.sit. After studying it
for some time (I'm a novice), I cannot figure out how to use his declares to
accomplish authorized file access.

Anyone have a simple solution or some pointers?

Keith DeLong


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to