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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:58:28+00:00 2026-06-11T07:58:28+00:00

I am trying to create an Automator Service that runs an applescript that eventually

  • 0

I am trying to create an Automator Service that runs an applescript that eventually runs a bash script to ssh/scp to a server:

—

I have this applescript that saves my current photoshop document and calls a bash script to scp the image to a server. The bash script then runs ssh to do some stuff on said server with the image.

I have an ssh-askpass file and it seems to work well in most situations. I even tried reinstalling it to make sure I didn’t goof on permissions, but it seems to be in good shape.

If I just run the applescript through Applescript Editor, it works fine and goes through ssh-askpass.

I want to create an Automator action (using the “service” template) to run my applescript, so I can just make it into a keyboard shortcut.

If I just run the script in Automator, everything works fine. Unfortunately, when I try to use the service outside automator (ie App Menu > Services), it seems that my Automator action is not attempting to go through ssh-askpass at all (which I verified with temporary logging)- everything works fine up to that point.

I looked into it a bit more, and it appears that a similar issue occurs when I try to run the applescript from the terminal (and not Applescript Editor)

—

Is there something different I need to do to ensure that an applescript (in Automator) uses ssh-askpass?

  • 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-11T07:58:30+00:00Added an answer on June 11, 2026 at 7:58 am

    I found the issue. In the bash script I was calling, I was exporting the SSH_ASKPASS path, but not the display:

    export DISPLAY=”:0″

    Apparently the AppleScript Editor (and XCode and Automator) does the exports for you, which is why it was working in those cases.

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

Sidebar

Related Questions

I'm trying to create a Service using Automator that simply calls textutil convert. Eventually,
I am trying to create a simple Automator droplet that will take the style.less
I am trying to create a service in OSX leopard that counts the number
I'm trying to create a simple Automator workflow that will prompt me for where
What I'm trying to do is create an asp.net page that runs a random
I'm attempting to create an automated bash script that fills up a file with
I'm trying to create automated integration tests for this hardware+software test subject which runs
I'm trying to create a C#.NET 2.0 script to automate a workflow in a
Ok so I am trying create a login script, here I am using PHP5
I'm trying to create a database connection in a python script to my DB2

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.