Re: Scripting Console
Re: Scripting Console
- Subject: Re: Scripting Console
- From: Bernardo Hoehl / Gessos Rutenium <email@hidden>
- Date: Wed, 22 Sep 2004 10:11:37 -0300
Hi Gnarlie!
Thanks for posting.
First of all I am not "doing shell script". I am telling Console to
open the file.
Yes! It opens with the previous size and position in my box.
But when my app does it on someone else's box it will (most probably)
open on top of my app's window.
I want to make sure it opens where I want it to open. Side by side with
my app's window.
Do you get it now?
Bernardo
+++++++++++++++++++++++++++++++++
On 22 Sep, 2004, at 10:02 AM, Gnarlodious wrote:
I don't get it. When you say:
do shell script "open /var/log/mail.log"
does it not open with the previous size and position?
-- Gnarlie
Entity Bernardo Hoehl / Gessos Rutenium spoke thus:
Hi List!
I have an AppleScript Studio app that sends out aprox 600 emails using
PostFix. I have it for my own personal use till this moment, but would
like to offer it to my customers.
I am trying to to make it open Console app to display the progress of
the process, a way of showing the GUI user that my application is
working. But it seems to me that Console doesn't have an applescript
dictionary.
This is my code so far:
tell application "Console"
open "/var/log/mail.log"
end tell
I would like to set the console window to a specific syze and position
in the screen, so that it won't open on top of my window, looking like
just another window of my own program.
I don't know if it is possible to do this, but I am considering as an
alternative editing/replacing the
~/Library/preferences/com.apple.Console.plist file. It seems to me
that
this block could do the trick:
</dict>
</array>
<key>LogOutlineViewWidth</key>
<real>150</real>
<key>NSWindow Frame /var/log/mail.log</key>
<string>13 195 948 551 0 0 1152 746 </string>
I would appreciate to read your comments,
Thanks!
Bernardo Höhl
Rio de Janeiro - Brazil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list
(email@hidden)
Help/Unsubscribe/Update your Subscription:
gnarlodious@earthli
nk.net
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden