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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:23:55+00:00 2026-05-16T18:23:55+00:00

My script looks like this, really simple tell application Terminal do script cd myapp

  • 0

My script looks like this, really simple

tell application "Terminal"
    do script "cd myapp"
    do script "heroku console" in window 1
    do script "User.count" in window 1
end tell

But I get an “Error in the AppleEvent Routine”. What is wrong with this script? If I type the commands in the Terminal it works.

  • 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-16T18:23:56+00:00Added an answer on May 16, 2026 at 6:23 pm

    That’s probably not working because heroku console doesn’t return you to the shell after it finishes, it starts the interactive console.

    What you need is something that will run and return. Fortunately this is totally possible with Heroku:

    heroku console 'User.count'
    

    You can call console with a command to run as the argument. Then it returns the result immediately instead of starting up the interactive session. Sounds perfect for you!

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

Sidebar

Related Questions

I have a really simple build script that looks like this: <Project xmlns=http://schemas.microsoft.com/developer/msbuild/2003 ToolsVersion=4.0
If I have a simple web page and script that looks like this: <body>
I have a script that looks like this #!/bin/bash function something() { echo hello
I have a batch script that looks like this: Test.bat @echo off :: Starts
I have a bash script that looks like this: #!/bin/sh previousRelease=`git describe --tags --match
I have a script that starts Tomcat and it looks like this: rem set
I have a line of php code that looks like this: echo <script>$('#edit_errors').html('<h3><em>Please Correct
A get in my PHP script JSON string that looks like this (array with
I found this script attached to a modified index page. This looks like some
Really simple question: Am I missing something? Seems like this should be all that

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.