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 8877207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:24:27+00:00 2026-06-14T19:24:27+00:00

I have the applescript which will displays menu list and allow user to select

  • 0

I have the applescript which will displays menu list and allow user to select menu items etc.
It runs fine by itself. And now I try to run it in python. I get the No user interaction allowed. (-1713) error.

I looked online. I tried the following:

  1. add on run function in the same applescript, so what i did is just add the main into the run

    on run
    tell application “AppleScript Runner”
    main()
    end tell
    end run

  2. i tried to run the above in python
    import os
    def main():
    os.system (‘osascript -e “tell application “ApplesScript Runner” do script /Users/eee/applescript/iTune.scpt end tell”‘)

    if name == ‘main‘:
    main()
    Neither way works. Can anyone tell me how to do this correctly?

  • 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-06-14T19:24:29+00:00Added an answer on June 14, 2026 at 7:24 pm

    That’s a common mistake. When you run a script using OSAScript from a shell, as you are doing, then you must tell an application to show any “display dialogs” or “choose list dialogs” or anything that requires user interaction. OSAScript can’t show them so tell an app like the Finder to show them. Use code like this…

    tell application "Finder"
        activate
        display dialog "Now it works!"
    end tell
    

    Or from the command line notice this won’t work…

    osascript -e 'display dialog "Now it will not work."'
    

    But this will work since we tell the Finder to do it…

    osascript -e 'tell application "Finder"' -e 'activate' -e 'display dialog "Now it works!"' -e 'end tell'
    

    So bottom line is that somewhere in your iTune.scpt you are displaying a dialog. In that script just tell iTunes or the Finder to display them.

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

Sidebar

Related Questions

i have a py2app application, which runs an appscript using py-appscript. the Applescript code
I have written an AppleScript which when supplied with a Windows network link, will
I have a lovely AppleScript droplet which performs OCR of a PDF file using
I have an AppleScript program which creates XML tags and elements within an Adobe
Applescript: Deleting Duplicates in a text file I have a .txt file which I've
I have a javascript in my page which requires a string list in this
I'm very new to python and applescript. I have a python script which is
I have written an AppleScript which, among other things, sets my desktop background. However,
I have an applescript that reads data from a CSV (successfully!). After my script
I have such an AppleScript: tell application Firefox activate set the bounds of the

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.