Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
0
votes
1
answers
273
views
Cannot run Sublime Text using ./subl
I downloaded Sublime Text 4107 zip file. Unzipped it in a folder and tried running it using `./subl` command but no matter what I try it shows ` > “Sublime Text 15-33-10-536” is damaged and can’t be opened. You should > move it to the Bin. I have read every article available but no luck. Can anyone...
I downloaded Sublime Text 4107 zip file. Unzipped it in a folder and tried running it using
./subl
command but no matter what I try it shows `
> “Sublime Text 15-33-10-536” is damaged and can’t be opened. You should
> move it to the Bin.
I have read every article available but no luck. Can anyone help me. If anybody want more information tell me comment section.
Also if I install Sublime using .dmg
file and drag it into Applications folder it works fine.
Malay Pandey
(33 rep)
Jul 4, 2021, 10:06 AM
• Last activity: Jul 3, 2025, 12:09 PM
0
votes
1
answers
29
views
How to make sublime_text command return from terminal after the app is opened
I try run my Sublime Text 4 in terminal. And I am using MacOS. However, I see after I run the command of sublime_text, it does not return until I manually turn off the Sublime Text. This is my commands: % alias subl="/Users/yaohuazhuo/Desktop/Self\ Installed\ Applications/Sublime\ Text.app/Contents/...
I try run my Sublime Text 4 in terminal. And I am using MacOS.
However, I see after I run the command of sublime_text, it does not return until I manually turn off the Sublime Text. This is my commands:
% alias subl="/Users/yaohuazhuo/Desktop/Self\ Installed\ Applications/Sublime\ Text.app/Contents/MacOS/sublime_text -w"
% subl
2025-01-30 16:54:33.108 sublime_text[14540:707456] +[IMKClient subclass]: chose IMKClient_Modern
So I tried different options, including removing the "-w". And I have even tried the "nohup" from this post:
https://superuser.com/questions/178587/how-do-i-detach-a-process-from-terminal-entirely
But it still shows "appending output to nohup.out" and the command line is still not returned
So how can I make the command return/detach from terminal after the sublime_text is opened?
Yaohua Zhuo
(1 rep)
Jan 31, 2025, 01:07 AM
• Last activity: Jan 31, 2025, 02:42 AM
4
votes
1
answers
1026
views
What does it mean when a software update needs to "send apple events"?
I've recently upgraded macOS from some 4 year old version of macOS 10 to Sonoma 14.7.2. I then installed a new version of Sublime Text, which frequently asks me to download the latest update. After clicking "download" and then clicking "install", a macOS message box opens warning me of Sublime Text'...
I've recently upgraded macOS from some 4 year old version of macOS 10 to Sonoma 14.7.2.
I then installed a new version of Sublime Text, which frequently asks me to download the latest update. After clicking "download" and then clicking "install", a macOS message box opens warning me of Sublime Text's intention to access Finder and send "apple events".
I think that software updates will need to access Finder, but I've never before heard of sending apple events and I don't know what that means. Do the "events" refer to accessing Finder only, or does it refer to contacting the Apple corporation, or something else?
>“Sublime Text.app” wants access to control “Finder.app”. Allowing control will provide access to documents and data in “Finder.app”, and to perform actions within that app.
>
>A program run by Sublime Text requires sending apple events
Alas, I see too late that there is a "?" button on the top right, but an answer here will reach other readers as well, so I'll keep this question here.
[](https://i.sstatic.net/F075jYqV.png)
uhoh
(1877 rep)
Jan 20, 2025, 12:51 AM
• Last activity: Jan 20, 2025, 08:36 PM
31
votes
9
answers
124472
views
File Not Found Error while including bits/stdc++.h
My System: MacOSX 10.9 64-bit Hey guys, I am working on Sublime Text 3. I have included the `#include ` but when I am compiling the source code, adityas-air% g++ 285C.cpp 285C.cpp:1:10: fatal error: 'bits/stdc++.h' file not found #include ^ 1 error generated. Is there some other header file specific...
My System: MacOSX 10.9 64-bit
Hey guys, I am working on Sublime Text 3. I have included the
#include
but when I am compiling the source code,
adityas-air% g++ 285C.cpp
285C.cpp:1:10: fatal error: 'bits/stdc++.h' file not found
#include
^
1 error generated.
Is there some other header file specific to Mac that is needed to be included instead of this or some tweaking that is needed to be done to Sublime Text 3.Thanx in advance!
Aditya Bahuguna
(489 rep)
Oct 5, 2014, 08:37 AM
• Last activity: Nov 14, 2024, 02:01 PM
1
votes
0
answers
19
views
App icon not visible in Sublime Text 6 after unzipping
I just downloaded Sublime Text 6 from the official website and after the download completes immediately after unzipping, the app icon doesn't show up. Please any remedy on how to address this will be so much appreciated.
I just downloaded Sublime Text 6 from the official website and after the download completes immediately after unzipping, the app icon doesn't show up.
Please any remedy on how to address this will be so much appreciated.
Popped Out
(11 rep)
Sep 25, 2023, 10:56 AM
• Last activity: Sep 25, 2023, 12:55 PM
0
votes
0
answers
420
views
Enabling autosave on Sublime Text Editor
I am using the Sublime editor on Mac. But I have to manually save the file. And when the editor is closed it asks whether to save the file or not. Is there a way to make it behave like Notepad++? **Desired Behavior:** Sublime Text should close without asking anything and when reopened it should pres...
I am using the Sublime editor on Mac. But I have to manually save the file. And when the editor is closed it asks whether to save the file or not. Is there a way to make it behave like Notepad++?
**Desired Behavior:**
Sublime Text should close without asking anything and when reopened it should preserve the open texts files
**Things I tried:**
Opened Settings and added hot_exit: true but this didn't have any effect.
The following pic shows the settings:

nicku
(101 rep)
May 3, 2023, 09:23 AM
2
votes
0
answers
353
views
Sublime don't open files when I use "Always open with" marker on Mac OS
I have an error when I am trying to open csv files with turn on "Always open with" Error: “file.csv” is damaged and can’t be opened. You should move it to the Bin. When I don't use marker "Always open with" on Mac OS everything work correctly [![enter image description here][1]][1] [1]: https://i.ss...
I have an error when I am trying to open csv files with turn on "Always open with"
Error:
“file.csv” is damaged and can’t be opened. You should move it to the Bin.
When I don't use marker "Always open with" on Mac OS everything work correctly
Also I did xattr -cr /Applications/Sublime_Text.app
But it didn't work for me.

Vadim Klimenko
(21 rep)
Aug 3, 2022, 08:34 AM
• Last activity: Aug 3, 2022, 08:36 AM
0
votes
1
answers
356
views
Sublime Text Multilingual Unicode Rendering
I've been using Sublime Text for years and noticed that the rendering of Devanagari unicode characters doesn't work. Has anyone figured a way to make this work? I haven't noticed any problem rendering other unicode characters, examples below. Devanagari script is used by > 600 million users, so sure...
I've been using Sublime Text for years and noticed that the rendering of Devanagari unicode characters doesn't work. Has anyone figured a way to make this work? I haven't noticed any problem rendering other unicode characters, examples below. Devanagari script is used by > 600 million users, so surely this is important, but I wonder why it has not received any attention.
Correctly rendered examples:
. This should have been
ä é è ß æ
我家是这样的. 这是一个出口. 绿茶
Incorrectly rendered examples:

प्रकास स्वास्थ्य
Sublime Text Build 4126 (Stable Channel), Mac OS 11.3.1.
vpk
(131 rep)
Mar 13, 2022, 06:24 PM
• Last activity: Mar 13, 2022, 08:45 PM
0
votes
1
answers
90
views
Sublime Text is autocorrecting “^”
I use Sublime Text 3 for my LaTeX coding. Whenever I try to type something with a carat such as ```e^{x+2}``` it autocorrects it to ```e{{x+2}}```. The autocorrect occurs right after typing the first curly brace and only occurs in math mode. I've looked through my Key Binding settings but it all loo...
I use Sublime Text 3 for my LaTeX coding. Whenever I try to type something with a carat such as
^{x+2}
it autocorrects it to {{x+2}}
. The autocorrect occurs right after typing the first curly brace and only occurs in math mode.
I've looked through my Key Binding settings but it all looks pretty foreign to me. This post here seems to refer to adding this autocorrection, but again is tough for me to understand what is going on.
ryanj1823
(101 rep)
Feb 23, 2021, 12:02 AM
• Last activity: Feb 24, 2021, 10:31 PM
1
votes
2
answers
3253
views
Export/Import Sublime Text 3 Configuration Across Two different Apple Computers
I would like to export my configurations for Sublime Text 3 from one Apple Computer to another. Can I just copy the application in the /Applications/ directory from one computer to another? Or do I need to install each package one-by-one on the new computer? Any help would be appreciated!
I would like to export my configurations for Sublime Text 3 from one Apple Computer to another.
Can I just copy the application in the /Applications/ directory from one computer to another?
Or do I need to install each package one-by-one on the new computer?
Any help would be appreciated!
Emma Marcier
(257 rep)
Apr 1, 2020, 04:37 PM
• Last activity: Jun 25, 2020, 05:38 PM
1
votes
1
answers
832
views
Trouble setting Sublime Text as default editor for entering Git commit message
I am learning `git` command-line. I wish to set Sublime Text as the default editor for entering commit message, when I run the `git commit` command from Terminal. But when trying to do so, I am running into the following error: > error: There was a problem with the editor ''/Applications/Sublime Tex...
I am learning
git
command-line. I wish to set Sublime Text as the default editor for entering commit message, when I run the git commit
command from Terminal.
But when trying to do so, I am running into the following error:
> error: There was a problem with the editor ''/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl' -n -w'.
Please supply the message using either -m or -F option.
What could be going wrong? How do I resolve the error message, and set things such that Sublime Text opens automatically for entering commit message when running git commit
command from Terminal.
rishabh
(11 rep)
May 6, 2020, 05:09 PM
• Last activity: May 6, 2020, 05:53 PM
4
votes
0
answers
3978
views
"Waiting for your editor to close the file" when trying to use Sublime Text 3 as Git editor
I'm trying to use Sublime Text 3 as Git's editor. I ran this: sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl Then this: git config --global core.editor "subl -n -w" I then ran: git commit --amend Sublime opened and I edited the file, saved it, and then...
I'm trying to use Sublime Text 3 as Git's editor.
I ran this:
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
Then this:
git config --global core.editor "subl -n -w"
I then ran:
git commit --amend
Sublime opened and I edited the file, saved it, and then closed it. However, Git was still waiting for the file to close:
hint: Waiting for your editor to close the file...
- There is no error message.
- I can use Sublime with no problems outside of Git.
- I tried restarting the machine (MacBook Pro).
- Using
textedit
works as expected: git config --global core.editor "open -W -n"
- The version of Sublime is: 3.2.1 Build 3207
- Git: git version 2.17.1 (Apple Git-112)
Why isn't this working?
Mitch
(141 rep)
Sep 19, 2019, 04:39 PM
• Last activity: Sep 19, 2019, 06:43 PM
3
votes
1
answers
638
views
Alternative to CTRL + C of macOS Terminal in Sublime Text 3
On macOS terminal ctrl + C terminates the program running. In Sublime Text, cmd + B runs a program such as Python, Ruby or such. If I want to terminate a running code, what is the shortcut key in Sublime Text 3 equivalent of ctrl + C ?
On macOS terminal ctrl+C terminates the program running. In Sublime Text, cmd+B runs a program such as Python, Ruby or such.
If I want to terminate a running code, what is the shortcut key in Sublime Text 3 equivalent of ctrl+C?
Emma Marcier
(257 rep)
Sep 9, 2019, 07:20 PM
• Last activity: Sep 10, 2019, 10:11 AM
2
votes
1
answers
1301
views
Remove Quicklook Syntax Highlighting with TextMate2?
TextMate2 Alpha comes with a Syntax Highlighting plugin for macOS QuickLook. How can it be disabled without removing TextMate?
TextMate2 Alpha comes with a Syntax Highlighting plugin for macOS QuickLook.
How can it be disabled without removing TextMate?
janniks
(231 rep)
Apr 23, 2014, 09:18 PM
• Last activity: May 20, 2019, 08:05 AM
1
votes
1
answers
10634
views
How can I change the encoding of a subtitle file?
I have a subtitle .srt file. Is there an app which can change the encoding of this file. (I guess it's encoding is Arabic(windows-1256) but vlc and MXPlayer didn't open it.) The link of subtitle is [here][1]. [1]: https://www.dropbox.com/s/1odrm72lm975lw7/A.I.%20Artificial%20Intelligence%202001%2072...
I have a subtitle .srt file. Is there an app which can change the encoding of this file.
(I guess it's encoding is Arabic(windows-1256) but vlc and MXPlayer didn't open it.)
The link of subtitle is here .
Hoseyn Heydari
(207 rep)
Apr 16, 2015, 04:18 PM
• Last activity: May 16, 2019, 06:57 PM
1
votes
1
answers
1462
views
How to make sublime text the default file viewer for all file types it supports
I want sublime text to open all the file types it supports. For e.g., if I double click on `.hpp` file, Xcode tries to open it. I want sublime text to open the file. I've looked at [RCDefaultApp][1], but it doesn't do the job. [1]: https://apple.stackexchange.com/a/132024/208590
I want sublime text to open all the file types it supports. For e.g., if I double click on
.hpp
file, Xcode tries to open it. I want sublime text to open the file. I've looked at RCDefaultApp , but it doesn't do the job.
duplex143
(110 rep)
Apr 18, 2019, 03:50 PM
• Last activity: Apr 18, 2019, 04:47 PM
4
votes
3
answers
746
views
What is the difference between "Learn" and "Ignore" in spell checkers
When right-clicking a word in Pages and Sublime Text, the user is offered to either "Learn" or "Ignore" the word. What is the difference between learning and ignoring? To me it would seem the same, that the word is simply "accepted" by the spell-checker and not highlighted as incorrect (red) anymore...
When right-clicking a word in Pages and Sublime Text, the user is offered to either "Learn" or "Ignore" the word.
What is the difference between learning and ignoring? To me it would seem the same, that the word is simply "accepted" by the spell-checker and not highlighted as incorrect (red) anymore.
But since it's two different choices, there's obviously a difference. Couldn't find information about this anywhere.
forthrin
(2681 rep)
Jan 20, 2016, 06:09 PM
• Last activity: Jan 24, 2019, 02:03 PM
1
votes
1
answers
3069
views
Install SublimeHighlight plugin on Sublime Text 3
I'm trying to copy my code from Sublime Text 3 into my Word document in RTF format with colors in tact by using this plugin: https://github.com/n1k0/SublimeHighlight The instructions say: > Sublime Text 3 users: a `python3` branch is also available. Just `git > checkout python3` from the root of you...
I'm trying to copy my code from Sublime Text 3 into my Word document in RTF format with colors in tact by using this plugin:
https://github.com/n1k0/SublimeHighlight
The instructions say:
> Sublime Text 3 users: a
python3
branch is also available. Just `git
> checkout python3` from the root of your package installation to use in
> in ST3. If you upgrade from a previous ST2 installation or encounter
> problems with the package, please proceed as detailed below:
>
> - Remove the package, if installed, using Package Control.
> - Add a repository: https://github.com/n1k0/SublimeHighlight/tree/python3
> - Install SublimeHighlight
with Package Control. It should pull the correct branch from Github.
> - Restart Sublime Text 3
Well...I'm a noob when it comes to all the stuff it's describing. I went to /Applications/Sublime\ Text.app/MacOS
and ran git checkout python3
but got fatal: Not a git repository (or any of the parent directories): .git
. I think I need to install git? Or Python3? I'm not sure exactly where to start or even if this git stuff is worth Googling, as I'm not even sure if I'm running the command in the correct directory or even if the plugin indeed is compatible with MacOS (even though their screenshots of using the plugin on Sublime Text 2 are in MacOS on the GitHub ReadMe...)
I would greatly appreciate some guidance
velkoon
(129 rep)
Sep 28, 2018, 01:39 AM
• Last activity: Jan 21, 2019, 08:01 AM
3
votes
1
answers
1087
views
Keyboard shortcut to open folder with Sublime Text
Is there a way to define a keyboard shortcut that would open a whole folder with Sublime Text? I can (obviously) easily open a file, I managed to define such a shortcut for opening a Terminal window at the folder location through keyboard preferences, but I don't know how to do that for 3rd party ap...
Is there a way to define a keyboard shortcut that would open a whole folder with Sublime Text?
I can (obviously) easily open a file, I managed to define such a shortcut for opening a Terminal window at the folder location through keyboard preferences, but I don't know how to do that for 3rd party apps.
Romain
(133 rep)
Dec 3, 2018, 12:59 PM
• Last activity: Dec 3, 2018, 01:11 PM
2
votes
1
answers
1135
views
Open file in Sublime Text tab via AppleScript
Using the following AppleScript code, I can open a .txt file in a new window of Sublime Text: tell application "Sublime Text" open "Users:me:Desktop:foo.txt" end tell Is there a way to open this file NOT as its own new window, but rather as a new tab of my existing window of Sublime Text?
Using the following AppleScript code, I can open a .txt file in a new window of Sublime Text:
tell application "Sublime Text"
open "Users:me:Desktop:foo.txt"
end tell
Is there a way to open this file NOT as its own new window, but rather as a new tab of my existing window of Sublime Text?
puterguy01
(107 rep)
Jun 27, 2018, 10:12 PM
• Last activity: Jun 27, 2018, 11:37 PM
Showing page 1 of 20 total questions