ANN: ChkTeX for TeXShop 1.4

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

ANN: ChkTeX for TeXShop 1.4

Ramón Figueroa-Centeno
Aloha,

I just uploaded ChkTeX for TeXShop 1.4 <http://www2.hawaii.edu/~ramonf/TeXShop/ChkTeX%20for%20TeXShop.zip>.

It has a number of improvements:

1. When double-clicked ChkTeX for TeXShop will open and display its manual, which now is inside the application bundle;
2. Added preferences to control things like colors, font, font size and "activation mode".
3. Buttons for changing font size.
4. Added statistics at the end.
5. Faster loading when inviked form TeXShop.
6. TeXShop Webpage Helper <http://www2.hawaii.edu/~ramonf/TeXShop/TeXShop%20Webpage%20Helper.dmg> is a separate required download, from now on.

If you find it helpful, write me a note <ramonf-at-hawaii-dot-edu>, it lightens my day :)

Enjoy!

Ramón
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ChkTeX for TeXShop 1.4

"M. Tamer Özsu"-2
I am having problem installing ChkTeX macro -- the applescript that is shown only has the following content and this does not look complete to me:

--Applescript direct

-- Ramon Figueroa-Centeno (June 3, 2010)
-- http://www2.hawaii.edu/~ramonf

try
        tell application "System Events"
                if UI elements enabled then
                        tell process "ChkTeX for TeXShop"
                                set window_pos to the position of window "ChkTeX for TeXShop"
                                set window_size to the size of window "ChkTeX for TeXShop"
                        end tell
                end if
        end tell
on error
        try
                try
                        set oldDelims to AppleScript's text item delimiters -- save their current state
                        set AppleScript's text item delimiters to {" "} -- declare new delimiters
                       
                        set command to "defaults read TeXShop \"NSWindow Frame PdfKitWindow\" | sed 's/ +/ /g'"
                        tell me to set ventana to do

--
M. Tamer Özsu
University of Waterloo

On 2010-06-13, at 11:49 PM, Ramón Figueroa-Centeno wrote:

>
> Aloha,
>
> I just uploaded ChkTeX for TeXShop 1.4
> <http://www2.hawaii.edu/~ramonf/TeXShop/ChkTeX%20for%20TeXShop.zip>.
>
> It has a number of improvements:
>
> 1. When double-clicked ChkTeX for TeXShop will open and display its manual,
> which now is inside the application bundle;
> 2. Added preferences to control things like colors, font, font size and
> "activation mode".
> 3. Buttons for changing font size.
> 4. Added statistics at the end.
> 5. Faster loading when inviked form TeXShop.
> 6. TeXShop Webpage Helper
> <http://www2.hawaii.edu/~ramonf/TeXShop/TeXShop%20Webpage%20Helper.dmg> is a
> separate required download, from now on.
>
> If you find it helpful, write me a note <ramonf-at-hawaii-dot-edu>, it
> lightens my day :)
>
> Enjoy!
>
> Ramón
>
> --
> View this message in context: http://macosx-tex.576846.n2.nabble.com/ANN-ChkTeX-for-TeXShop-1-4-tp5176033p5176033.html
> Sent from the MacOSX-TeX mailing list archive at Nabble.com.
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex

Reply | Threaded
Open this post in threaded view
|

Re: ANN: ChkTeX for TeXShop 1.4

"M. Tamer Özsu"-2
In reply to this post by Ramón Figueroa-Centeno
I am having problem installing ChkTeX macro -- the applescript that is shown only has the following content and this does not look complete to me:

--Applescript direct

-- Ramon Figueroa-Centeno (June 3, 2010)
-- http://www2.hawaii.edu/~ramonf

try
        tell application "System Events"
                if UI elements enabled then
                        tell process "ChkTeX for TeXShop"
                                set window_pos to the position of window "ChkTeX for TeXShop"
                                set window_size to the size of window "ChkTeX for TeXShop"
                        end tell
                end if
        end tell
on error
        try
                try
                        set oldDelims to AppleScript's text item delimiters -- save their current state
                        set AppleScript's text item delimiters to {" "} -- declare new delimiters
                       
                        set command to "defaults read TeXShop \"NSWindow Frame PdfKitWindow\" | sed 's/ +/ /g'"
                        tell me to set ventana to do

--
M. Tamer Özsu
University of Waterloo

On 2010-06-13, at 11:49 PM, Ramón Figueroa-Centeno wrote:

>
> Aloha,
>
> I just uploaded ChkTeX for TeXShop 1.4
> <http://www2.hawaii.edu/~ramonf/TeXShop/ChkTeX%20for%20TeXShop.zip>.
>
> It has a number of improvements:
>
> 1. When double-clicked ChkTeX for TeXShop will open and display its manual,
> which now is inside the application bundle;
> 2. Added preferences to control things like colors, font, font size and
> "activation mode".
> 3. Buttons for changing font size.
> 4. Added statistics at the end.
> 5. Faster loading when inviked form TeXShop.
> 6. TeXShop Webpage Helper
> <http://www2.hawaii.edu/~ramonf/TeXShop/TeXShop%20Webpage%20Helper.dmg> is a
> separate required download, from now on.
>
> If you find it helpful, write me a note <ramonf-at-hawaii-dot-edu>, it
> lightens my day :)
>
> Enjoy!
>
> Ramón
>
> --
> View this message in context: http://macosx-tex.576846.n2.nabble.com/ANN-ChkTeX-for-TeXShop-1-4-tp5176033p5176033.html
> Sent from the MacOSX-TeX mailing list archive at Nabble.com.
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex

Reply | Threaded
Open this post in threaded view
|

Re: ANN: ChkTeX for TeXShop 1.4

Ramón Figueroa-Centeno
Re: ANN: ChkTeX for TeXShop 1.4 Here you go.

--Applescript direct

-- Ramon Figueroa-Centeno (June 3, 2010)
-- http://www2.hawaii.edu/~ramonf

try
    tell application "System Events"
        if UI elements enabled then
            tell process "ChkTeX for TeXShop"
                set window_pos to the position of window "ChkTeX for TeXShop"
                set window_size to the size of window "ChkTeX for TeXShop"
            end tell
        end if
    end tell
on error
    try
        try
            set oldDelims to AppleScript's text item delimiters -- save their current state
            set AppleScript's text item delimiters to {" "} -- declare new delimiters
            
            set command to "defaults read TeXShop \"NSWindow Frame PdfKitWindow\" | sed 's/ +/ /g'"
            tell me to set ventana to do shell script command
            tell ventana
                set window_pos to {text item 1, 0}
                if text item 3 > 600 then
                    set window_size to {600, (text item 4 as integer)}
                else
                    set window_size to {text item 3, (text item 4 as integer)}
                end if
            end tell
            set AppleScript's text item delimiters to oldDelims -- restore them
        on error
            set AppleScript's text item delimiters to oldDelims -- restore them in case something went wrong
        end try
    on error
        set window_pos to {640, 0}
        set window_size to {600, 640}
    end try
end try

tell application "ChkTeX for TeXShop" to quit

-- Force Quit a given application using applescript?
-- http://macscripter.net/viewtopic.php?id=15240
set myProcesses to {"TeXShop Webpage Helper", "ChkTeX for TeXShop"} -- The ones to quit.

tell application "System Events"
    repeat with myProcess in myProcesses
        set theID to (unix id of processes whose name is myProcess)
        try
            -- Should stop the application with no dialogs and no items saved.
            do shell script "kill -9 " & theID
        end try
    end repeat
end tell

tell application "TeXShop"
    activate
    try
        path of the front document
        set TeX_path to the result
    on error
        -- There is no front document  or it has not ever been saved
        beep
        display dialog "there is no front document" & return & "or it has not ever been saved!" buttons {"Ok"} default button "Ok" with icon stop giving up after 20
        return
    end try
    
    if the front document is modified then
        set saveme to 1
    else
        set saveme to 0
    end if
    
    set command to "open -a \"ChkTeX for TeXShop\" " & quoted form of TeX_path
    if saveme = 1 then
        set command to command & " --args  " & saveme & "  " & quoted form of (name of the front document as string)
    end if
    do shell script command
end tell

activate application "ChkTeX for TeXShop"
tell application "System Events"
    if UI elements enabled then
        tell process "ChkTeX for TeXShop"
            set position of window "ChkTeX for TeXShop" to window_pos
            set size of window "ChkTeX for TeXShop" to window_size
        end tell
    end if
end tell
Reply | Threaded
Open this post in threaded view
|

Re: ANN: ChkTeX for TeXShop 1.4

"M. Tamer Özsu"-2
Thank you.

--
M. Tamer Özsu
University of Waterloo

On 2010-06-14, at 7:23 PM, Ramón Figueroa-Centeno wrote:

Re: ANN: ChkTeX for TeXShop 1.4 Here you go.

--Applescript direct

-- Ramon Figueroa-Centeno (June 3, 2010)
-- http://www2.hawaii.edu/~ramonf

try
    tell application "System Events"
        if UI elements enabled then
            tell process "ChkTeX for TeXShop"
                set window_pos to the position of window "ChkTeX for TeXShop"
                set window_size to the size of window "ChkTeX for TeXShop"
            end tell
        end if
    end tell
on error
    try
        try
            set oldDelims to AppleScript's text item delimiters -- save their current state
            set AppleScript's text item delimiters to {" "} -- declare new delimiters
            
            set command to "defaults read TeXShop \"NSWindow Frame PdfKitWindow\" | sed 's/ +/ /g'"
            tell me to set ventana to do shell script command
            tell ventana
                set window_pos to {text item 1, 0}
                if text item 3 > 600 then
                    set window_size to {600, (text item 4 as integer)}
                else
                    set window_size to {text item 3, (text item 4 as integer)}
                end if
            end tell
            set AppleScript's text item delimiters to oldDelims -- restore them
        on error
            set AppleScript's text item delimiters to oldDelims -- restore them in case something went wrong
        end try
    on error
        set window_pos to {640, 0}
        set window_size to {600, 640}
    end try
end try

tell application "ChkTeX for TeXShop" to quit

-- Force Quit a given application using applescript?
-- http://macscripter.net/viewtopic.php?id=15240
set myProcesses to {"TeXShop Webpage Helper", "ChkTeX for TeXShop"} -- The ones to quit.

tell application "System Events"
    repeat with myProcess in myProcesses
        set theID to (unix id of processes whose name is myProcess)
        try
            -- Should stop the application with no dialogs and no items saved.
            do shell script "kill -9 " & theID
        end try
    end repeat
end tell

tell application "TeXShop"
    activate
    try
        path of the front document
        set TeX_path to the result
    on error
        -- There is no front document  or it has not ever been saved
        beep
        display dialog "there is no front document" & return & "or it has not ever been saved!" buttons {"Ok"} default button "Ok" with icon stop giving up after 20
        return
    end try
    
    if the front document is modified then
        set saveme to 1
    else
        set saveme to 0
    end if
    
    set command to "open -a \"ChkTeX for TeXShop\" " & quoted form of TeX_path
    if saveme = 1 then
        set command to command & " --args  " & saveme & "  " & quoted form of (name of the front document as string)
    end if
    do shell script command
end tell

activate application "ChkTeX for TeXShop"
tell application "System Events"
    if UI elements enabled then
        tell process "ChkTeX for TeXShop"
            set position of window "ChkTeX for TeXShop" to window_pos
            set size of window "ChkTeX for TeXShop" to window_size
        end tell
    end if
end tell


View this message in context: Re: ANN: ChkTeX for TeXShop 1.4
Sent from the MacOSX-TeX mailing list archive at Nabble.com.
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex



----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex