Want to create a soft, which will copy the selected text to a desired file on press a certain shortcut !!
While trying to save my SQL commands, i developed the need for something like this
Related
When you Right click -> New -> New Text Document, the file comes up with this name: New Text Document.txt and the name part comes as selected so you can type a different name. But to change the extension part you need to go to the right of the . and then press delete multiple times. I want the default extension to come up as .rtf. And it would be pretty interesting to change the "New Text Document" to a reminder like "Create backup"
Why do I want to do this? I save my notes in rtf format where I can do simple formatting which is not supported by txt files. I don't want to use docx files since they open in Word which takes some time to open. I only use them when I'm writing a story or something. I like the simple interface of wordpad for notetaking and so I've set the rtf files to open in wordpad as default. Please help.
You can create a new rich text file directly, which will give you the extension .rtf
Right click -> New -> Rich Text Format
I am using automation to open a file in an application (same as doing "open" from the File menu of iTunes to pick a file). In the past the file prompt would be available also to accept a string, but in the more recent version of OSX, I can't see how you pass a file.
The only thing that you can do is to choose the file with the mouse, but there is no text field to type the file name.
Is there a way to switch to the old file prompt? my automation sadly does not work anymore, since it is expecting a text field that is not there.
The open panel never supported an immediately visible text input field. You're probably thinking of the save panel.
That said, you can bring up a sheet that allows for text input by pressing Command-Shift-G. This is also the same keyboard combination as the Go > Go to Folder menu item in the Finder. In that sheet, you can type a Unix-style path to a file or folder. After you confirm the sheet, that file or folder will be selected in the dialog. You still have to confirm the dialog itself.
As a further shortcut, the Go sheet shows if you just start typing an absolute path, starting with either "/" or "~" (for the home folder).
Any other typing will perform type-to-select in the file list.
How do i set a default application to open a file with my preferred text editor? I am currently trying open file.rb. It opens text wrangler, but I want to open with another. How do i do this?
Go to finder, right click on your file.rb file and select Get Info.
In the Info Window you'll see a section that says Open with, expand that section. There you can change the default application to open that particular file. There's also a button labeled Change All... This button allows you to use the specified application for all similar filetypes (*.rb).
You want to use the name of the editor you want to open with, i.e. gedit file.rb, or vim file.rb. You can probably also change your default editor associated with that file type, depending on your OS, etc.
Sometimes I'll have a blob of text in my clipboard that I want to paste into a text file. Most often I open up another text editor (like TextWrangler) and paste it in there, but it seems a little clunky switching between that and xcode. Is there a way to open an empty text editor in Xcode without creating a new file? I don't want to save anything, I just want to look at the text I've copied.
That's not possible unfortunately. (as of Xcode 4.4).
So I used Xcode and all. Now, whenever I open my text files it opens automatically with Xcode. How do I undo this?
RightClick on the file name -> Open With -> Choose the editor you wish to open with this kind of file. And that sets to be default editor for opening files with that particular file extension ( i.e., .txt ) when opened in future.
Edit: The above procedure is not a permanent one. Try this -
Right click on the file name.
Choose Get Info
Choose one from the Open With drop down. This will be set as default application and is used in future if opened the .txt file.
Right-click any text-file an select "Get-info", then choose your preferred Text-editor under "Open with" and click "Change all..."
You can change program association by right clicking on your file and clicking on "Get Info". This will bring up another dialog in which you can change the program associated with that file type.
You can find visual instructions here: http://osxdaily.com/2009/10/25/change-file-associations-in-mac-os-x/