Re: Script for Post.Office
Re: Script for Post.Office
- Subject: Re: Script for Post.Office
- From: George Priggen <email@hidden>
- Date: Sun, 07 Mar 2004 13:21:55 -0800
Gnarlie or anyone
I took your suggestions and added something else to handle the password
issue because it kept asking for the password. The result:
do shell script "sudo /usr/local/post.office/post.office" password
"userpassword" with administrator privileges
It works and opens up Post.Office on startup just like we want it to. The
only problem when testing it out in the Script Editor and also as an
application is the dreaded color ball keeps spinning. And no when I saved
it I did not check "Stay open".
What are your suggestions for getting the ball to stop and the application
to close?
Looks like we are getting close.
George
>
From: Gnarlodious <email@hidden>
>
Date: Sun, 07 Mar 2004 13:00:09 -0700
>
To: Applescript <email@hidden>
>
Subject: Re: Script for Post.Office
>
>
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.
>
>
> 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.
>
>
-- Gnarlie's Applescript page
>
http://www.Gnarlodious.com/OSX/AppleScript/AppleScript.html
>
_______________________________________________
>
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.
_______________________________________________
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.