Tag Info

New answers tagged

1

Any texteditor & textutil Still intrigued by your problem I found the following solution. There is a Terminal app called textutil and it allows to convert richtext to plane text. Edit and save your 'Rich' text anyway you want to (like in TextEdit). Use the commandline textutil to convert your rich text to normal text textutil richtext.rtf -convert ...


1

HTML/Javascript A way to do some simple text editing independent of the system is using a combination of HTML and Javascript. This is Ascii as simple as it gets. The code below is shamelessly stolen from the thiscouldbebetter.wordpress.com, and will give you some direction on how to implement this. <html> <body> <table> ...


3

TextEdit You mention that Apple lost its mind with TextEdit. In what way specifically? Anyway, I would suggest TextEdit: It can open any .txt file as plain text It works out of the box It allows users to use the mouse You can list your current preferences programatically like: defaults read com.apple.TextEdit You can always set the preferences ...


0

An thing on the clipboard is actually an OO-style object which has methods to render itself appropriately in each context. So the reason that your hex dump from PBCOPY is the same even when the object on the clipboard is different is because the text-only renderings are both the same. Just as a file on the clip board will render as its ascii file path in ...


0

This is probably sorted out by now, but for future readers: do shell script "rm /private/var/folders/" error that says: error "rm: /private/var/folders/ : is a directory" You need rm -r to remove a directory and it's contents. However, I would suggest that if you don't already know that detail, then perhaps destructive shell commands are not for ...


0

It's a simple way. You can use the getconf DARWIN_USER_CACHE_DIR command to get the per-user temporary files and caches directory. and remove it. edit the '/etc/profile' file, add the following codes in it(not test yet): userTempDir=`/usr/bin/getconf DARWIN_USER_CACHE_DIR` rm -fr $userTempDir*


0

Two issues: You need whitespace between "if[" as well as "[numerical evaluation]” to execute properly. The logical syntax is incorrect. if x; then (and only then) y; else z;fi;done. Else is not necessary, but you can’t declare two identical if statements like so: if x, then y. if x, then z. That makes no logical sense. On the other hand: if x, ...


0

Don't know what you are trying to accomplish here, but doing a test for the exit condition while still being inside the loop isn't really necessary: for ((i=0;i<=100000000;i++)); do echo "Request #$i returned ip-adress" [$((RANDOM%256)).$((RANDOM%256)).$((RANDOM%256)).$((RANDOM%256))] done echo "All ip-adresses have been stored in local hard drive." ...


0

Developer of Fluid here. This AppleScript is supposed to do what you are asking, but it's causing a crash in the current version of Fluid (1.8.3). I'll look into it. tell application "<Your Fluid App Name Here>" tell browser window 1 repeat set c_ to count of tabs set idx_ to index of selected tab set ...


1

This does the trick for me. sudo su To get some root privileges and the # prompt, then kill the processes. killall -vu username -HUP And if it´s not all gone. Nuke em! killall -vu username -9


0

Here is sample one-liner which gets the version info from SystemVersion.plist: ex -s +'%s/<[^>].\{-}>//ge' +'%s/\s\+//e' +'%norm J' +'g/^$/d' +%p +q! /System/Library/CoreServices/SystemVersion.plist You may use head, tail or awk for further parsing, for example to get ProductVersion, try adding: | grep ^ProductVersion | cut -d' ' -f2 Or try to ...


2

I've created an AppleScript very similar to the @YoshiBotX's one, but with some improvements. The idea is to create an Automator workflow and assigning a shortcut to it using the following steps: Open Automator and create a Service; Set the input to no input, and the application to Finder.app; Drag and Drop the Run AppleScript workflow element onto the ...



Top 50 recent answers are included