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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:33:51+00:00 2026-05-23T17:33:51+00:00

Can anyone tell me why this script, running on a fileset in automator leaves

  • 0

Can anyone tell me why this script, running on a fileset in automator leaves all my TextMate windows open with the save prompt waiting for my input instead of actually saving and closing the file?

I assumed that the line close window 1 saving yes would save and close the file and continue with the next but it seems it doesn’t.

on run {input, parameters}

    repeat with a from 1 to length of input
        tell application "TextMate"

            activate
            open item a of input

            tell application "System Events"
                tell process "TextMate"
                    tell menu bar 1
                        tell menu bar item "Text"
                            tell menu "Text"
                                tell menu item "Convert"
                                    tell menu "Convert"
                                        click menu item "Tabs to Spaces"
                                    end tell
                                end tell
                            end tell
                        end tell
                    end tell
                end tell
            end tell

            close window 1 saving yes

        end tell
    end repeat

    return input
end run

enter image description here

  • 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-23T17:33:51+00:00Added an answer on May 23, 2026 at 5:33 pm

    I would say either TextMate is simply presenting the opportunity to save (or cancel), this is a bug, or this is an incomplete implementation of the command within TextMate. But only TextMate’s devs can answer that question.

    Commands and their implementations are completely up to the developer and their applications; there are no enforced or encouraged standards given by Apple to go by. The command close window 1 saving yes in the Adobe Creative Suite causes the document to be saved and then closed without user intervention, and it is pure coincidence the syntax is the same.

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

Sidebar

Related Questions

Can anyone tell me why this bash script works if I cut and paste
Can anyone please tell me how do I make this script run in IE
Can anyone please tell why this error? I have included everything ( all header,
Can anyone please tell me what is wrong with this script. I am a
Can anyone please tell me what exactly this script does? #! /bin/sh test –f
Can anyone tell me what is wrong with this script: IF @MODE = 'FRIEND-LIST-MANAGE'
Can anyone tell me what I'm doing wrong in this jquery script? $(document).ready(function() {
Can anyone tell me why this coffee script: $ -> $('#btnLogin').live 'click', -> $.ajax
i was wondering if anyone can tell me how to make this script work.
Can anyone tell me why this code would not be working? $('body').on('test', function() {

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.