Re: Script for Post.Office
Re: Script for Post.Office
- Subject: Re: Script for Post.Office
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 07 Mar 2004 12:25:33 -0800
On 3/7/04 12:00 PM, "Gnarlodious" <email@hidden> wrote:
>
Entity George Priggen spoke thus:
>
>
>> do shell script "sudo /usr/local/post.office/post.office"
>
> 1. Do I just save this command in a text file and put it into the startup
>
> items folder?
>
As an Applescript, you will paste it into the Script Editor. Ensure it runs
>
and does what you want. Then select "Save As" and save as "Application".
>
Script Editor may have an option to deselect "show startup dialog, I'm not
>
sure, but you should choose not to show the startup window.
>
>
Put the script wherever you want, probably ~User/LibraryScripts/
>
If no such folder exists you can create it. When the script is in place open
>
your "Accounts" prefpanel and select your name, then "Startup Items" in the
>
upper right corner. Now click "+" to add an item and navigate to the script,
>
or just drop it in the box.
Not quite. If it's going to be run as an AppleScript then
do shell script "sudo /usr/local/post.office/post.office"
will not avoid the dialog about passwords. You have to do what I wrote
George privately (he wrote me privately):
do shell script "sudo /usr/local/post.office/post.office" with
administrator privileges
only maybe you don't need the sudo and perhaps you might need to add on
password "whateverItIs"
But administrator privileges are not the same as root privileges so maybe it
still won't help.
Did you try that? You seemed to want to have a pure-Unix solution so that's
why I suggested you continue to pursue that elsewhere because I don't know
the answer. I thought Gnarlie was going to tell you how to do that, but she
seems disinclined (see 3. below) and seems to think a script will do the
trick. But will it really give you sudo privileges without a password? In
Terminal you have to enter your password whenever you use 'sudo'.
>
>
> 2. Do I make this into a command file by adding ".command" to it and then
>
> put it into the startup items folder.
>
Not recommended considering your level of expertise. Besides, I'm not sure
>
*.command files work anymore in Panther.
>
>
> 3. Do I need to do anything with chmod or passwords?
>
As above. If you want to create an actual UNIX StartupItem I'll walk you
>
through it, but the AS solution should get you going.
>
If the AS asks for a password every reboot the UNIX solution might be best.
That's what I think. That's what George needs. I don't know enough about
shebang lines and such to help him with Unix scripts.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.