#applescript
Explore tagged Tumblr posts
Text
I teach myself the weirdest shit for fandom.
1 note
·
View note
Text
Set Sound Output via AppleScript
Set Sound Output via AppleScript
When playing music I usually change my office MacBook’s sound output to a Sonos speaker, which is an AirPlay device. Sometimes the connection freezes and I have to reset output my default device and back to the office speaker. I wanted to automate both of these processes, so I found an AppleScript as a starting point. I modified it and created an Alfred Workflow with a keyword trigger. Here’s my…
View On WordPress
0 notes
Text
if i have to stare at applescript for one more second i'm fucking digging up steve jobs
#morrisounds#GHRHRHHGHHHHH RIPPING OUT MY HAIRRRRRR#i'm using a launchdaemon to run an applescript and it runs fine EXCEPT#THE DIALOG BOXES DON'T SHOW UP#and i think it's because it's running as root but howww do i make it show the box AND run as root so there's no need to edit sudoers or#store passwords in plain text
4 notes
·
View notes
Text
Get-DisplayDialog in PowerShell Gallery
My PowerShell -> Display Dialog bridge is up in the PowerShell Gallery at https://www.powershellgallery.com/packages/Get-DisplayDialog you really want to read the help for it, it’s a real…help 🙂
0 notes
Text
Historia del Mac OS X 10.1 "Puma"
Hoy en Retro Computing MX recordamos el lanzamiento del Mac OS X v10.1 "Puma", un paso importante en la evolución de los sistemas operativos de Apple.
Este 25 de septiembre se cumplen 23 años desde que esta versión mejorada, lanzada en 2001, introdujo características clave como grabación de discos, reproducción de DVD, soporte para más impresoras, y un notable aumento en el rendimiento gráfico gracias a mejoras en OpenGL. También fue la primera vez que AppleScript Studio vio la luz, permitiendo crear aplicaciones completas de forma sencilla.
Aunque conocido como "Puma" por los fans, Apple nunca usó oficialmente este nombre en su web, ya que liberó esta versión de forma urgente para suplir las fallas que presentaba la versión anterior.
#apple #macosx #puma #retrocomputingmx #tecnologíaretro #historiadelacomputación
#retro tech#vintage tech#retrocompmx#old tech#apple#mac os x#tecnologiaretro#historia de la computacion
2 notes
·
View notes
Photo
MacAddict August 1999
The then-familiar “wait” indicator of the Macintosh operating system was challenged in this issue with an assortment of speed-up tips from “simple software adjustments” to “spending money on upgrade hardware” (with the feature article also including “freakish” upgraded Macs in sideshow sidebars). A “get started with programming” article suggested using AppleScript, RealBasic, and MacPerl.
3 notes
·
View notes
Text
How to make a global keyboard shortcut to toggle your Mac Mastodon app’s visibility
I was a happy user of both Twitteriffic and Tweetbot on both Mac and iOS for many years, until of course Elon burned everything to the ground and kicked out all the third party Twitter clients.
I’ve moved over to Mastodon now, and while there are several decent Mastodon apps on the Mac, most of them are designed for iOS first and lack one of my favorite features from both Twitteriffic and Tweetbot: a global keyboard shortcut that will bring your timeline window forward to read, then hide it again when you’re done.
Until my favorite feature gets implemented by the apps, in the meantime I’ve come up with a solution using AppleScript to get the same effect. I thought others might find it useful, so here’s how to do it if you want.
1. First you’ll need something to handle the global keyboard shortcut. My tool of choice is FastScripts, but any app that lets you trigger an AppleScript with a global keyboard shortcut will suffice.
2. Open Script Editor, paste in the following script, and save it in ~/Library/Scripts so FastScripts will include it in its script menu. The following script is using the app Ivory, but you can replace the “Ivory” name with whatever Mastodon app you’re using.
tell application "System Events" if exists process "Ivory" then tell process "Ivory" if visible then set visible to false else tell application "Ivory" to activate end if end tell end if end tell
3. Use the FastScripts preferences window to assign your preferred keyboard shortcut to run this script.
Now, whenever you press your shortcut, if your app is not in front then it will be brought to the front. If the app window is already in the front, then the script will hide the app for you. Enjoy!
2 notes
·
View notes
Text
blog 3
rust nedir
elixir nedir
android işletim sistemi
ios nedir
microsoft powershell nedir
applescript nedir
microsoft word nedir
microsoft excel nedir
microsoft powerpoint nedir
outlook nedir
onedrive nedir
microsoft ononote nedir
nfc nedir
bluetooth nedir
vpn nedir
gsm nedir
xml nedir
windows hosting nedir
cmd nedir
web world
ethereum nedir
spam nedir
favicon nedir
php mail fonksiyonu
mobbing nedir
403 hatası
discord nedir
sosyal medya yasası nedir
bittorrent nedir
tarayıcı önbelleği nedir
switch nedir
cpanel nedir
sanal kart nedir
steam dolar
dpi nedir
google drive nedir
wan ne demek
udemy nedir
caddy web server
seo nedir
ram temizleme
apk ne demek
ping nedir
rpm ne demek
cpu nedir
anakart nedir
ssd nedir
ekran kartı nedir
rom bellek nedir
ghz nedir
dsl nedir
power supply nedir
5g nedir
oem nedir
x86 ve x 84 nedir
bluestacks nedir
volte nedir
bios nedir
distribütor nedir
dlc ne demek
freesync nedir
twitch nedir
vsync nedir
proxy nedir
raspberry pi nedir
b2b ne demek
mbps ne demek
router nedir
overclock nedir
blockhain ne demek
aux ne demek
cd kart nedir
jenaratör nedir
iso ne demek
chipset nedir
freedos ne demek
gpu nedir
hotspot nedir
adsl nedir
airbnb nedir
wetransfer nedir
chromium nedir
arduino nedir
vdsl nedir
modem2 ve 5-ghz nedir
type c nedir
e imza nedir
kep adresi nedir
fps nedir
dropshipping nedir
pinterest nedir
keylogger nedir
reddit nedir
root nedir
bitcoin güvenilirmi
ipv4 nedir
ip nedir ip nasıl sorgulanır
gzip sıkıştırma nedir
sar değeri nedir
emotet nedir
1 note
·
View note
Text
Applescript to Switch to Dark Mode is macOS
I found this script online back in 2018 and it still works in Sonoma. Fire it using LaunchBar, natch. tell application "System Events" tell appearance preferences set dark mode to not dark mode end tell end tell It will switch to dark mode and back again, somehow.
View On WordPress
0 notes
Text
How I Created 3 Awesome Automations with AI
How I wrote an AppleScript to help me print my tasks, project list, and calendar on a routine basis using AI and a custom GPT.
The ChatGPT Tech Support Advisor Custom GPT is stellar. Because it can write the code for you and also because I have specific things about my own personal setup that shouldn’t be shared for protective reasons, I’ve summarized what I’ve done with it. ⚠���A Caveat: Be warned that you can mess up your computer if you don’t somewhat understand tech-speak and how your computer works. But if you’re…
View On WordPress
0 notes
Text
Automate Journaling Day One with Shortcuts
I am not a natural journal writer, and I am a nerd who likes to program as a hobby. So, it seems natural that I could combine these two traits and use Apple Shortcuts to automate a daily journal entry for me in my favorite journaling app, Day One. I used to accomplish this only with AppleScript, with inspiration and help from Brett Terpstra. My old AppleScript relied on a command-line utility…
View On WordPress
0 notes
Text
Making Things in 2023
There were more posts for 2023 than I remembered. January Set Sound Output via AppleScript A Full Bathroom Remodel Electric Toothbrush Shelf Miter Saw Cart Workshop Dust Collection 2.0 Part 2 February Stand for Bench Grinders RasP.iO Breadboard Pi Bridge Tool Pegboard Reorganization Milwaukee M12 Heated Jacket Failures Ryobi Tool Storage March Origami More Shop Updates Update on…
View On WordPress
0 notes
Text
macos admin will have you googling "does applescript run as root ask for password" and "applescript with administrator privileges no password" and getting results like "here's how to put your password in the script in plain text" and "manually edit the sudoers file on 3k computers + then shit yorself and die"
#morrisounds#creating a launchdaemon that runs a script to check uptime and force a restart if a computer has been up for a week+#except to force a restart (and to TIME said restart) we need a sudo command#but do i need a password? the daemon would run it as root#which is what sudo does. or do i need to omit with administrator privileges#because it's already being run as root#should i just cave and ask superuser on stackexchange.#AND YES I COULD DO IT THROUGH JAMF. IF ANY OF THESE COMPUTERS WE NEED TO RESTART CHECKED IN#WHICH THEY DON'T
2 notes
·
View notes
Text
An Example of why I think Apple's developer documentation sucks
A quick comparison of bad dev docs (Apple) to good dev docs (Microsoft)
for anyone thinking of complaining i’m being “mean” or “unfair”, I was being *nice* here. I could have compared MS’s OS automation and PowerShell documentation to Apple’s Automation and AppleScript documentation. But why beat a dead horse? It’s no secret I really hate Apple’s dev. docs. Because they are bad. Objectively so, and in ways that hurt new people. For example, let’s say I want to put a…
View On WordPress
0 notes
Link
0 notes
Text
Urgh, Text Editors
This is a bit of a rant, and most people won’t be interested at all, so I’m hiding it below a “keep reading”.
If you have never done any programming or web design, or have only dabbled in them, then you may not be aware of Text Editors as a Thing. TextEdit on the Mac, or Notepad on Windows, are the very low-end, featureless bottom of the heap for this sort of thing — you can edit code files with those programs, but they don’t have any specialized tools to do common stuff.
I’ve been using BBEdit for this purpose since sometime in the (very) late 1990s. BBEdit has been a good tool for this purpose — it has all the usual features of IDEs like syntax coloring and autocompletion, it does GREP-based find and replace (and before Mac OS X, GREP-based find and replace on the Mac was a rarity!), it can link up to revision control systems like git and subversion, it can either run files directly in their own windows (if they are of a type where this makes sense, like Python scripts) or send them to the Terminal to run on a “real” command line, it has file comparison and multi-file searching built in, it can open and save files from servers using various protocols so you can do touchups of web design remotely, it is one of the few programs which still have full AppleScript support (so you can not merely write macros but interactive macros with GUI access), and of course it has a massive toolkit for HTML editing. Also, it is actually written for the Mac, not a port of something written for Windows or Linux. (If you’re a Windows user, and you have used QuickTime Player for Windows, then you know the feeling you get when you use a program which is noticeably “expecting” a different OS. Most open-source programs feel like that on the Mac for at least the first 3 major releases or so. Some — like VNC — never really get over it.)
In the last couple of years, I’ve just been using the last version I paid for, which was version 12, on my very old Intel-based Mac. But I had to get a new machine for various reasons, and so I’m now on an M2 CPU instead of Intel (which, incidentally, is mostly great — to get this kind of performance from an Intel CPU you’d have to buy one of their top-of-the-line models with massive cooling requirements and a huge price tag, and this is running in a laptop and hasn’t even reached the point of needing to turn on the fan yet no matter what I have thrown at it). That means I have very little choice about upgrading to the new version, which is 14, and… they have changed to a subscription-based license. (You can use the program for free without a license, but most of the features which make it worth using will stop working.) Now, in all fairness, I probably wouldn’t be spending more this way than I have been. They’re asking $40 per year. Adjusted for inflation, I’ve been spending about that much over time, what with occasional upgrades.
(And I have no problem with the idea of paying for software. If you want good software, stuff which is easy to use with responsive tech support and timely upgrades, paid software beats open source every day of the week — and you don’t have to worry about big tech companies like Google and IBM perverting the course of the project as you do with, say, Linux.)
But although I understand the motivation of switching to a subscription model — it evens out their revenue stream so they have a better idea of how much money they will have in future years as compared with selling one-time licenses — the switch does mean that if Bare Bones Software, the company writing the program, goes under, then under the subscription model the program will stop working a year after the last renewal, even if you stop installing OS upgrades and leave the machine exactly as-is. They might do a final release which fixes that problem in such a scenario but then again they might not — even if they are totally benign, it’s possible that they might go out of business so abruptly that nobody has time to authorize, recode, and release such a thing. (Or they might have the old BeOS graphics layer problem, where the one person who actually understands the code dies unexpectedly.) Bleah!
So I’ve been looking into alternatives. There are several.
Sublime Text looks like it’s basically meant to be a BBEdit equivalent; they’re asking $100 for it, which is a bit hefty depending on how long that lasts. (How often do they intend to charge for upgrades, and will there be discounts for upgrades or do you have to re-purchase the whole thing?) I’m doing some evaluations now.
Apparently you can get the Microsoft Visual Basic IDE for Mac OS X which… I’ve heard way too many complaints about it, from people who were actually running it on Windows; it is probably unfathomably bad on Mac. Reviewers seem to like it, but I don’t trust reviewers these days. Not with all the content-spamming review blogs which just parrot marketing materials — and as I say, actual Windows users complain about it a lot. (Plus: if I wanted to fire up a whole IDE every time I was going to edit a text file, I would use Apple’s XCode, which I’ve been avoiding on purpose except when I actually want to compile a program.)
There’s something called Atom, which even the positive reviewers note is slow and resource-intensive, and a lot of its supposed positives either don’t apply to me or are actually things I consider negatives. (“Cross-platform”? Oh, you mean it will have an awkward interface that reinvents a bunch of GUI wheels instead of using the built-in system controls.) But it’s free. Oh, it’s also been discontinued. Well, never mind, then.
UltraEdit appears to be very similar to BBEdit, except that it’s cross-platform (and I have confirmed: the Mac GUI is awful) and some of the tools built into BBEdit are farmed out to other programs which you potentially have to buy separately. Oh, and I just checked and they are also on a subscription basis, except that they charge twice as much as BBEdit. Wow, what a dead end of a program.
Oh, and also there are apparently GUI-packaged versions of a couple of the really awful old CLI text editors, vi and Emacs. I have tried both in the past and would rather repeatedly slam my hand (or, shall we say, any other portion of my anatomy) in a desk drawer than use either one, thanks.
Looks like I’m either going with Sublime Text or signing on for a BBEdit subscription. Ugh.
0 notes