Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7571339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:39:05+00:00 2026-05-30T15:39:05+00:00

I recently installed Warcraft3:TFT on my Mac using Wine because the Mac version doen’t

  • 0

I recently installed Warcraft3:TFT on my Mac using Wine because the Mac version doen’t support Lion. I wrote a script using Applescript to run the terminal command for Wine and then disable my hot corners so I wouldn’t have any issues with navigating the screen.

I wrote the script and it runs fine through Applescript (Compile > Run). The real problem comes in when trying save the script as an application. I save it as an application and then try to run the application (named “Warcraft III – The Frozen Throne”) and get this error:

error message on script app execution

Here is the script itself:

set settings1 to {"-", "Desktop", "Start Screen Saver", "Mission Control"}
set settings2 to {"-", "-", "-", "-"}

tell application "Terminal"
     do script "/opt/local/bin/wine ~/.wine/drive_c/Program\\ Files/Warcraft\\ III/war3.exe"
end tell

tell application "System Preferences"
     reveal pane id "com.apple.preference.expose"
     activate
     tell application "System Events"
     tell window "Mission Control" of process "System Preferences"
        click button "Hot Corners…"
        tell sheet 1
            tell group 1
                set theSettings to settings2
                set functionKeys to false
                repeat with k from 1 to 4
                    set theValue to item k of theSettings
                    tell pop up button k
                        if value is not theValue then
                            click
                            click menu item theValue of menu 1
                        end if
                    end tell
                end repeat
            end tell
            click button "OK"
        end tell
    end tell
end tell
quit
end tell

display alert "Done playing?" buttons {"Yes"}
set response to button returned of the result
if response is "Yes" then
--Start return to normal settings
tell application "System Preferences"
    reveal pane id "com.apple.preference.expose"
    activate
    tell application "System Events"
        tell window "Mission Control" of process "System Preferences"
            click button "Hot Corners…"
            tell sheet 1
                tell group 1
                    set theSettings to settings1
                    set functionKeys to true
                    repeat with k from 1 to 4
                        set theValue to item k of theSettings
                        tell pop up button k
                            if value is not theValue then
                                click
                                click menu item theValue of menu 1
                            end if
                        end tell
                    end repeat
                end tell
                click button "OK"
            end tell
        end tell
    end tell
    quit
end tell
--End return to normal settings

--quit X11 and terminal
tell application "X11"
    quit
end tell
tell application "Terminal"
    quit
end tell
end if

This is the first time I have actually written in Applescript so there maybe some sort of error in it that I am not seeing. Thanks in advance for any advice or input!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:39:06+00:00Added an answer on May 30, 2026 at 3:39 pm

    Your error code has nothing to do directly with your AppleScript. Error –10810 is a Launch Services error code signaling a generic, i.e. unknown error. It seems to get thrown quite often when OS X’ process table runs over. There is a quite thorough background post on the issue at the X Labs, complete with step by step instructions to diagnose (and possibly remedy) the issue.

    On an OT note, I notice you use GUI scripting to toggle Hot Corners on or off. This is unnecessary: Lion’s System Events can script these settings via its Expose Preferences Suite, i.e.

    property hotCornerSettings : {}
    
    to disableHotCorners()
        set hotCorners to {}
        tell application "System Events"
            tell expose preferences
                set end of hotCorners to a reference to bottom left screen corner
                set end of hotCorners to a reference to top left screen corner
                set end of hotCorners to a reference to top right screen corner
                set end of hotCorners to a reference to bottom right screen corner
                repeat with hotCorner in hotCorners
                    set hotCornerProps to properties of hotCorner
                    set end of hotCornerSettings to {hotCorner, {activity:activity of hotCornerProps, modifiers:modifiers of hotCornerProps}}
                    set properties of hotCorner to {activity:none, modifiers:{}}
                end repeat
            end tell
        end tell
    end disableHotCorners
    
    to restoreHotCorners()
        tell application "System Events"
            tell expose preferences
                repeat with settings in hotCornerSettings
                    set properties of item 1 of settings to item 2 of settings
                end repeat
            end tell
        end tell
    end restoreHotCorners
    

    … which spares you the can of worms that is GUI scripting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently installed MAMP version 1.6 on my MAC OS 10.5.7. Now I am
We recently installed Team Foundation Server 2008 and we are using it for both
I recently installed the RTM version of 4.0. I now receive an error when
I recently installed Visual Studio 2010 (Ultimate edition, final version released in April), and
I recently installed PDT Helios and now when using the debugger, it will break
I recently installed the 64 bit version of XP on my new development machine,
I recently installed a new version of Crystal Reports 13 (2010) on Visual Studio
I recently installed the latest version of git (1.7.6) for OS X (10.7). When
I recently installed Mac OS X on my system. This is probably a very
I recently installed the hg tip version of Ropemacs and I'd like to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.