Saturday, June 19, 2021

Recent Questions - Ask Different

Recent Questions - Ask Different


How to set a bluetooth device as my playback device without going to the device menu?

Posted: 19 Jun 2021 04:12 AM PDT

I have some speakers that I would like to easily connect to when I arrive home and I'm already playing something on my device. Is there a way to easily set the device, when I arrive? Probably an automation script?

Build Chromium or Firefox with X11/Xorg and without Cocoa

Posted: 19 Jun 2021 12:56 AM PDT

I like to use X11 on my Mac. I know that you can run X11 Apps through Docker, but that just isn't as efficient. Is there any way to compile Firefox or Chromium with X11 support on a Mac?

How to change (increase) resolution of QT recording?

Posted: 19 Jun 2021 02:48 AM PDT

I want to know how to increase (or change) the video resolution/quality of a Quicktime video recording on Mac. I have OS Catalina 10.15.7. Is there a way to do this? Can someone pls help? thanks.

What is causing my Apple ID issues when using that ID on two macOS installations, on the same machine?

Posted: 18 Jun 2021 08:58 PM PDT

I have a single 2019 16" Macbook Pro, and due to a desire to separate my work from personal projects, I have created a new APFS volume to contain my personal work. I installed macOS Big Sur on it and generally things work as expected. Both installations are the latest version of macOS Big Sur (currently 11.4).

Signing into my Apple ID does not work as expected.

I expect to be able to sign in to my single Apple ID on both volumes and be able to use standard Apple ID and iCloud features on both volumes, independently, more or less as if they were two separate devices (in reality it seems that Apple does understand that it is one device, I only have a single "devices list" entry).

However, I am experiencing a problem where signing into the Apple ID on one volume causes the other volume, at the time it is next booted, to have a "problem" with my Apple ID. I encounter a warning message that says there was something "wrong with my Apple ID" and that I needed to "sign-in again" to fix the problem. Visiting System Preferences like the prompt asks shows the following problems:

system preferences apple id warnings

Pressing "continue" and signing in again solves the problem for the installation/volume that I am currently logged into, but the act of solving this problem here will trigger the same problem in the other volume.

I have googled this problem extensively but cannot find references to my exact situation - multiple volumes/installations with the same Apple ID, with this "Apple ID problem" problem. Generally, people with this "problem with your Apple ID" message do not explicitly say that they are running multiple volumes, and that the problem can be solved either by following the prompts, deleting a corrupted keychain directory (tried that with no luck), or with a sign out -> restart -> sign out (tried that with no luck).

Apple themselves seem to support this exact multiple-volume setup, so either my google-fu is lacking, or nobody has reported this problem before.

Some ancillary questions:

  • What impact, if any, does the "computer name" have on this? I can set each volume's computer name to something different. If I do, devices and services seem to use the correct name based on what volume I am logged in to.
  • Would installing each OS in separate APFS containers (not volumes) be of any help? I'd like to avoid that in order to keep the benefit of shared free space between volumes.

Any suggestions on how I might proceed?

I use Microsoft Ergonomic keyboard with my Mac mini . It drops selected letters - capital W, U, P. - swapped keyboards - same problem please advise

Posted: 19 Jun 2021 01:38 AM PDT

I have successfully used my Microsoft Ergonomic Keyboard 4000 (wired) with my Mac mini.

Recently it stopped giving me anything when I asked for a capital W - which is a pain in the ass for a guy named Wayne.

Now it has spread to other keys. So I switched to another keyboard (two actually- one of which was an apple keyboard) and I'll be damned if they doesn't produce the exact same errors - dead keys.

How can that be? I'm not smart enough apparently. Please advise

Mac mini mid 2011 bluetooth not available

Posted: 18 Jun 2021 07:04 PM PDT

I got Mac Mini mid 2011 with High Sierra. One day, the bluetooth is suddenly not available. I got this event log in the Bluetooth Explorer:

Blockquote Process: Bluetooth Explorer 6.0.9 Operating System: Version 10.13.6 (Build 17G14042) Date: 2021-06-19 00:58:38 +0000

Blockquote Initializing Bluetooth... Bluetooth Support Initialization complete. Jun 19 08:55:16 Minirin-2011 com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.WebContent.9285): Path not allowed in target domain: type = pid, path = /System/Library/StagedFrameworks/Safari/SafariShared.framework/Versions/A/XPCServices/com.apple.Safari.ImageDecoder.xpc error = 147: The specified service did not ship in the requestor's bundle, origin = /System/Library/StagedFrameworks/Safari/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc Jun 19 08:55:16 Minirin-2011 com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.WebContent.9285): Path not allowed in target domain: type = pid, path = /System/Library/StagedFrameworks/Safari/SafariShared.framework/Versions/A/XPCServices/com.apple.Safari.SearchHelper.xpc error = 147: The specified service did not ship in the requestor's bundle, origin = /System/Library/StagedFrameworks/Safari/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc Jun 19 08:55:16 Minirin-2011 com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit

What is the problem and how can I fix it?

How can I make in app purchases with my apple id [closed]

Posted: 18 Jun 2021 05:22 PM PDT

I have an apple id on my phone and when I try to make a purchase it says please verify your payment method.

MacBook Pro remote connection

Posted: 18 Jun 2021 04:03 PM PDT

I bought my MacBook Pro new in the packaging late 2019. how do I see if it is being remotely connected to? the reason im asking is I have some folders that are locked on here and in the activity monitor under network it has Remote /usr/libexec/remoted? nobody should be connecting to the laptop can I check under terminal a command to see who is connecting to my laptop?

Audio cuts out of iMovie just before clip ends?

Posted: 18 Jun 2021 03:09 PM PDT

I made a quicktime video of myself speaking. I wanted to speed it up so I used a video speed changer online to do that. When I import the new clip to iMovie, however, the audio cuts out somehow near the end (~3 secs before the clip ends). I'm not sure why this is happening - is it since I used the video speed editor and iMovie doesn't support that or something else? Any help on fixing this would be appreciated, thanks.

Ghost Swipe up iPhone X after screen replacement

Posted: 19 Jun 2021 01:55 AM PDT

My girlfriend breaks her iPhone X at least 2 times per year, so after having spent 630€ at the Apple Store in one year I started to change her screen by myself.

With today I did it 5 times, but a strange thing happened; the screen functions well but sometimes the iPhone do a "ghost swipe down" by itself.

So I am asking if this is something that I can fix by myself (maybe opening and closing it again, moving the screen cables etc.) or if the problem is probably the screen that is defective.

Is there an error in assembly that could result in this problem?

Can I use Apple cups as a programmable printer API?

Posted: 19 Jun 2021 03:00 AM PDT

My intent is to have a "fake printer" (Appple cups) show up on the user's desktop/Chrome browser (print settings) after it's added through a server ip/port. And it's not going to deal with any printers... I want to extract the documents that would be printed and then treat them as files to then be shared with other computers (by regular file upload/download).

I know it sounds backwards but the printer as a starting point is key in this particular application.

This "fake printer" has to be added by Printers & scanners say through TCP/IP/port

Mcabook Pro aluminum bottom cover bent - from battery overheating?

Posted: 18 Jun 2021 06:51 PM PDT

Macbook Pro batteryI have a Macbook Pro Early 2015, model A1502, that I opened up recently because I was worried about a wobble that I saw. I don't use this laptop as much anymore but in the past, I had noticed that it tended to overheat a lot so I was worried that there might be a problem with the battery. Before opening it, I checked the battery health and it was around 600 cycles, with a life span of 1000 cycles. After opening it, I didn't seen much swelling from the battery and figured it was fine.

But when I was putting the bottom cover back on, I felt a lot of resistance/tension in the cover and figured that something was in the way of the cover and preventing it from lining up with screws grooves.

Should I replace the battery or is it okay to use as is?

Have any software distributions been removed from macOS Monterey?

Posted: 18 Jun 2021 04:12 PM PDT

Are any software distributions (e.g., python, ruby, perl, etc.) that were included in older versions of macOS not included with macOS Monterey?

Why can't I connect to local devices via VPN when IP subnet is the same between both networks?

Posted: 19 Jun 2021 04:03 AM PDT

I have a VPN server running on my home network that I can connect to fine. The local IP subnet is set to 10.0.0.1 with the subnet mask set to 255.255.255.0. This works fine.

When I'm on a friends network, they have the IP subnet set to the same value as mine. In this case I can connect to my VPN fine (doing an IP check online shows my home IP), but I'm unable to connect to any local device.

If the friend changes their router settings to use 192.168.1.1 with a subnet mask of 255.255.255.0, everything works perfectly (and I'm able to connect to my local devices on my home network).


It almost seems like when the IP subnet is the same, there is a conflict where it will prioritize sending it to the local network instead of sending it through to my VPN connection. I have verified that all of my traffic is set to send over the VPN connection.

Send all traffic over VPN connection is enabled


Is there a way on macOS to fix that so that no matter the local IP DNS subnet of the network I'm connected to I'm able to access my local devices on the VPN network?

Graphics glitch - checkered pattern in Chrome

Posted: 18 Jun 2021 06:00 PM PDT

I've had this MacBook Pro (16-inch, 2019) for a while now, but today it glitched out with huge green fields in all apps.

After a reboot I see this checkered black/green glitch pattern in Google Chrome on some sites, in some "sizes". Basically if I resize the browser window the glitch goes away, but if I resize it too much it comes back.

Happens both on the internal and on external display.

I am hoping this is a software glitch, but I am afraid it's my graphics card. Would be very grateful if someone knows the answer.

Here's the stackoverflow logo with the glitch:

StackOverflow logo glitched

How to access older iPhone auto-backups / restore lost Safari cards?

Posted: 18 Jun 2021 07:05 PM PDT

Recently I've lost all my open Safari cards on my iPhone. Since i want to move my data to a new model anyway, I was just disabling wifi every time I plugged it to the charger in order to not let it auto-backup. I did not turn off the backup function, because I was too scared of the iThreat, threatening they'll delete all my iCloud files, backups, photos, etc. if i cancel anything iCloud-related. So sadly, that one time I forgot to turn off the wifi, and it did back up automatically. Since I've tried doing a computer backup many times before on many different PC's and cables, changing settings, including replacing the whole charging port, I couldn't do it, so iCloud backups are the only ones I could make. Now, as you might have guessed, the latest backup doesn't contain any of those lost 48 open cards, and the latest backup i did manually is almost half-year old.

Is there any way I can get access to the older AUTOMATIC iCloud backup? If not, how do I get my cards back? They couldn't just disappear without the trace of I didn't physically press 'delete' button right?? 😰

Does OS X support SMB Direct (RDMA)?

Posted: 18 Jun 2021 03:18 PM PDT

SMB over RDMA technology was introduced in SMB 3.0, and gained broader popularity in the last couple of years.

Does anyone know if I can recompile sharing or enable this on macOS?

iPadOS Add entry to text replacement (user dictionary) from shortcuts

Posted: 18 Jun 2021 07:05 PM PDT

I'm using the apple pencil on Ipad and work with a lot of abbreviations. So every-time I write one, it will be replaced with whatever is the closest match in the English dictionary. I can work around that by adding the abbreviations in the user dictionary (settings - general - keyboard - text replacement). So I often find myself going to this setting to add a new abbreviation. I would like to make this a bit easier by creating a shortcut that can do it for me. So far, all I can do is a shortcut that will take me to the "text replacement" page :

prefs:root=General&path=Keyboard/USER_DICTIONARY  

It's ok but I wish I could just ask for input and push this into the user dictionary all through the shortcut.

Is there a way to do this?

softwareupdate shows 2 updates for Command Line Tools - get rid of one entry

Posted: 19 Jun 2021 01:04 AM PDT

I am on macOS Catalina 10.15.6 (19G2021) and softwareupdate as well as graphical "Softwareupdate" in "System settings" show two updates for Command Line Tools:

$ softwareupdate --list  Software Update Tool    Finding available software  Software Update found the following new or updated software:  * Label: Command Line Tools beta 5 for Xcode-12.0      Title: Command Line Tools beta 5 for Xcode, Version: 12.0, Size: 442912K, Recommended: YES,  * Label: Safari14.0CatalinaAuto-14.0      Title: Safari, Version: 14.0, Size: 65417K, Recommended: YES,  * Label: Command Line Tools for Xcode-12.0      Title: Command Line Tools for Xcode, Version: 12.0, Size: 429595K, Recommended: YES,  

beta 5 was proposed to me for a couple of weeks now, but I did not want to install it. Why did I end up with beta 5 and how do I get rid of the duplicate here?

Security Update 2020-004: Apple Remote Desktop and Screen Sharing Not Working? Anyone else noticed?

Posted: 18 Jun 2021 11:06 PM PDT

I just installed the security update on a remote computer and can no longer access that computer via Apple Remote Desktop or Screen Sharing?

Luckily I had Teamviewer as a backup...

Anyone else notice/got any ideas how to fix this?

I tried cycling everything on and off a few times, restarts, etc. SSH is working OK.

It seems to be exclusively the security update 2020-004 that broke it...I haven't changed anything else, and it's worked all year. Another computer on the network also on 10.14.6 is working fine (since I haven't installed that update on it yet...nor will I until I can resolve this).

Thanks.

How to replace fusion drive and restore MacOS?

Posted: 18 Jun 2021 08:07 PM PDT

I have 2014 Mac Mini with fusion drive running Catalina. If I replace original fusion SSD with bigger one, can I restore Time Machine backup or reinstall OS?

Files grayed out in Finder. Can preview them, but cannot open, move or copy them

Posted: 18 Jun 2021 05:06 PM PDT

I don't know how they got this way. I have files with this problem in at least several directories. I found out about them today because I was trying to move a ton of directories to a new disk (Journaled to APFS) using Forklift (a file manager) and it couldn't move these files to the target volume. I don't know if Forklift caused this problem, or not.

They are JPG photos. I can preview them by pressing {Space} in Finder. But I cannot open them with a double-click — nothing happens. If I right (or Ctrl-) click and choose "Open in Preview", I get an error box saying, "Item "DSC_1507.JPG" is used by macOS and can't be opened."

macOS Catalina 10.15.5. Volume containing these files is formatted "Mac OS Extended (Journaled)".

In the directory I'm focused on, most of the files are fine and only two have this problem. Here is the output of "ls -@BOaen" in that directory:

drwxr-xrwx   63 501  20  -        2142 Jul 12 11:35 .  drwx---rwx  346 501  20  -       11764 Jul 12 11:35 ..  -rw-r--r--@   1 501  20  hidden  10244 Jul 12 11:35 .DS_Store      com.apple.FinderInfo        32   -rw-r--rw-    1 501  20  -      810973 May 27  2007 DSC_1459.JPG  -rw-r--rw-@   1 501  20  -      775584 May 27  2007 DSC_1460.JPG      com.apple.FinderInfo        32       com.apple.ResourceFork     286   -rw-r--rw-    1 501  20  -      759218 May 27  2007 DSC_1461.JPG  -rw-r--rw-    1 501  20  -      776705 May 27  2007 DSC_1462.JPG  -rw-r--rw-    1 501  20  -      706499 May 27  2007 DSC_1463.JPG  -rw-r--rw-    1 501  20  -      745194 May 27  2007 DSC_1464.JPG  -rw-r--rw-    1 501  20  -      738880 May 27  2007 DSC_1465.JPG  -rw-r--rw-    1 501  20  -      738429 May 27  2007 DSC_1466.JPG  -rw-r--rw-    1 501  20  -      735377 May 27  2007 DSC_1467.JPG  -rw-r--rw-    1 501  20  -      754554 May 27  2007 DSC_1468.JPG  -rw-r--rw-    1 501  20  -      791172 May 27  2007 DSC_1469.JPG  -rw-r--rw-    1 501  20  -      773111 May 27  2007 DSC_1470.JPG  -rw-r--rw-    1 501  20  -      765038 May 27  2007 DSC_1471.JPG  -rw-r--rw-    1 501  20  -      768764 May 27  2007 DSC_1472.JPG  -rw-r--rw-    1 501  20  -      763442 May 27  2007 DSC_1473.JPG  -rw-r--rw-    1 501  20  -      775224 May 27  2007 DSC_1474.JPG  -rw-r--rw-    1 501  20  -      784815 May 27  2007 DSC_1475.JPG  -rw-r--rw-    1 501  20  -      777241 May 27  2007 DSC_1476.JPG  -rw-r--rw-    1 501  20  -      831271 May 27  2007 DSC_1477.JPG  -rw-r--rw-    1 501  20  -      791179 May 27  2007 DSC_1478.JPG  -rw-r--rw-    1 501  20  -      785068 May 27  2007 DSC_1479.JPG  -rw-r--rw-    1 501  20  -      731792 May 27  2007 DSC_1480.JPG  -rw-r--rw-    1 501  20  -      716097 May 27  2007 DSC_1481.JPG  -rw-r--rw-    1 501  20  -      714844 May 27  2007 DSC_1482.JPG  -rw-r--rw-    1 501  20  -      729683 May 27  2007 DSC_1483.JPG  -rw-r--rw-@   1 501  20  -      700798 May 27  2007 DSC_1484.JPG      com.apple.metadata:kMDLabel_ynznmevxgley2w6qjybv2ooake     361   -rw-r--rw-    1 501  20  -      692407 May 27  2007 DSC_1485.JPG  -rw-r--rw-@   1 501  20  -      721117 May 27  2007 DSC_1486.JPG      com.apple.metadata:kMDLabel_ynznmevxgley2w6qjybv2ooake     361   -rw-r--rw-    1 501  20  -      704744 May 27  2007 DSC_1487.JPG  -rw-r--rw-    1 501  20  -      720340 May 27  2007 DSC_1488.JPG  -rw-r--rw-    1 501  20  -      704883 May 27  2007 DSC_1489.JPG  -rw-r--rw-    1 501  20  -      775318 May 27  2007 DSC_1491.JPG  -rw-r--rw-    1 501  20  -      747067 May 27  2007 DSC_1492.JPG  -rw-r--rw-    1 501  20  -      773182 May 27  2007 DSC_1493.JPG  -rw-r--rw-    1 501  20  -      781310 May 27  2007 DSC_1494.JPG  -rw-r--rw-    1 501  20  -      783461 May 27  2007 DSC_1495.JPG  -rw-r--rw-    1 501  20  -      778057 May 27  2007 DSC_1496.JPG  -rw-r--rw-    1 501  20  -      751829 May 27  2007 DSC_1497.JPG  -rw-r--rw-    1 501  20  -      766204 May 27  2007 DSC_1498.JPG  -rw-r--rw-    1 501  20  -      736061 May 27  2007 DSC_1499.JPG  -rw-r--rw-    1 501  20  -      739079 May 27  2007 DSC_1500.JPG  -rw-r--rw-    1 501  20  -      725808 May 27  2007 DSC_1501.JPG  -rw-r--rw-@   1 501  20  -      745046 May 27  2007 DSC_1502.JPG      com.apple.metadata:kMDLabel_ynznmevxgley2w6qjybv2ooake     361   -rw-r--rw-    1 501  20  -      743298 May 27  2007 DSC_1503.JPG  -rw-r--rw-    1 501  20  -      747363 May 27  2007 DSC_1504.JPG  -rw-r--rw-    1 501  20  -      748738 May 27  2007 DSC_1505.JPG  -rw-r--rw-    1 501  20  -      756632 May 27  2007 DSC_1506.JPG  -rw-r--rw-@   1 501  20  -      692238 May 27  2007 DSC_1507.JPG      com.apple.FinderInfo        32       com.apple.ResourceFork     286   -rw-r--rw-    1 501  20  -      721489 May 27  2007 DSC_1508.JPG  -rw-r--rw-    1 501  20  -      746945 May 27  2007 DSC_1509.JPG  -rw-r--rw-    1 501  20  -      700179 May 27  2007 DSC_1510.JPG  -rw-r--rw-    1 501  20  -      695580 May 27  2007 DSC_1511.JPG  -rw-r--rw-    1 501  20  -      819134 May 27  2007 DSC_1512.JPG  -rw-r--rw-    1 501  20  -      824389 May 27  2007 DSC_1513.JPG  -rw-r--rw-    1 501  20  -      734251 May 27  2007 DSC_1514.JPG  -rw-r--rw-    1 501  20  -      751609 May 27  2007 DSC_1515.JPG  -rw-r--rw-    1 501  20  -      702895 May 27  2007 DSC_1516.JPG  -rw-r--rw-    1 501  20  -      707470 May 27  2007 DSC_1517.JPG  -rw-r--rw-    1 501  20  -      734209 May 27  2007 DSC_1518.JPG  

The two troublesome files are DSC_1460.JPG and DSC_1507.JPG. As you can see, each is followed by this in that ls output:

com.apple.FinderInfo 32

com.apple.ResourceFork 286

I ran Disk Utility's First Aid feature on that partition and it finished without finding any problems. I've rebooted twice since running Disk Utility's First Aid.

Any ideas?

How to edit m4b audiobook metadata in Catalina?

Posted: 19 Jun 2021 02:10 AM PDT

In Catalina it is not possible to edit audiobook metadata anymore as it was possible using iTunes in previous macOS versions. I tried a third-party tag editor (kid3), successfully edited the audiobook metadata, but still, when I import the audiobook into the Books app, the metadata is wrong.

What could possibly be going on, is there anyway I can work around this issue?

Using Raspberry Pi as a home hub for Apple HomKit setup

Posted: 18 Jun 2021 04:07 PM PDT

I'm trying to make my home a bit smarter using HomeKit without actually buying HomeKit accessories. Now I'm using python and the pyhap libary and it is working so far.

I can control my Raspberry Pi using Apple HomeKit and the Home app. But there's one thing I consider a big disadvantage of HomeKit: it cannot be controlled from outside the Network without an iPad, HomePod or Apple TV working as a home hub.

Question: Can I somehow turn my Raspberry Pi into a home hub so I can control my lights etc from outside my home?

MacBook Pro: Can't change the screen brightness

Posted: 18 Jun 2021 10:58 PM PDT

On my MacBook Pro 2012, I can't change the screen brightness. When I click on the brightness keyboard controls, nothing happens. Under System Preferences → Displays, the Brightness slider is missing:

SP SS

I have also tried with an AppleScript and when I run it, I hear an error sound:

tell application "System Events"      key code 107  end tell  

Where does the problem come from? How do I adjust the brightness?

macOS Mail: How to remove background color of a message in message list?

Posted: 18 Jun 2021 05:13 PM PDT

In MacOS Mail, we can change the background color of a message in the message list. This could happen in two ways AFAIK: (i) Select a message, go to Format -> Show Colors, then choose a color, or (ii) Setup a rule that automatically set the background color based on some conditions.

The question is: once the background color is set, I can't seem to find a way to remove the background color. I can only change it to another color. This does not work well when we switch between dark mode and light mode. What I would like to do is to remove the colors all together (or equivalently, make the background transparent). Is there a way to do this?

On iOS, how can I insert a date/time stamp while I'm writing something?

Posted: 18 Jun 2021 04:55 PM PDT

I often write short text documents on my iPhone, and want to insert a date stamp in the format YYYY-MM-DD. Is there a utility or other means by which I can quickly insert a date stamp instead of typing it manually each time?

How to create a blank RTF file in AppleScript?

Posted: 18 Jun 2021 07:32 PM PDT

I want to be able to create a new TextEdit document with an AppleScript file. The AppleScript file will then be triggered by a system-wide keyboard shortcut via FastScripts. Specifically, I want the AppleScript to:

  1. Prompt the user to enter a filename.
  2. Create a blank TextEdit file with that filename and save it to a predetermined location. I would like the file to be a rich text document (which is the default type of document created in TextEdit when one clicks "File" → "New").
  3. Set the preset font size of that file to be 18.
  4. Open the file in TextEdit, with window bounds of {160, 10, 883, 639}. (Note that TextEdit will most likely not already be open when the AppleScript file is run.)
  5. Ensure that the blinking cursor is on the second line of the document, so that the user can immediately begin typing. (I hate typing on the very first line in TextEdit, from a visual standpoint, and have to first hit enter every time that I create a new file before I can begin typing.)

Here is what I have:

-- Getting file name from user:    repeat      set customFilename to the text returned of (display dialog "Save as:" with title "Do you want to create a new, blank TextEdit RTF document?" default answer "")        -- Ensuring that the user provides a name:        if customFilename is "" then          beep          display alert "The filename cannot be empty." message "Please enter a name to continue."      else          exit repeat      end if  end repeat        -- Creating the desired file path:  set filePath to "/Users/Me/Desktop/"  set fullFilepath to filePath & customFilename & ".rtf"        -- Checking if the file already exists:  tell application "Finder"        set formattedFullFilepath to POSIX path of fullFilepath       if exists formattedFullFilepath as POSIX file then          tell current application              display dialog "The file \"" & formattedFullFilepath & "\" already exists!" & "    " & "Do you want to overwrite the file?" buttons {"No", "Yes"} default button 1 with title "File Already Exists..." with icon caution                if the button returned of the result is "No" then                  return              end if          end tell      end if  end tell  

That's where I am, at this point.

I'm not sure how exactly to approach the rest. I could create a new TextEdit document within TextEdit itself, and then save the file with the custom filename. Or I could create the RTF file outside of TextEdit, and then open the file with TextEdit.

Similarly, the AppleScript can either insert the blank line by keystroke after the file is opened, or the AppleScript can actually write the line to the file when the file is created.

And I have no idea how to set the preset font size for a specific document in AppleScript (without changing the application-wide default font size), or if it is even possible.

Your account is temporarily unavailable. Try again later

Posted: 19 Jun 2021 03:40 AM PDT

When try to download an app from the AppStore I receive this error message. Is there anything I can do besides waiting?

Your account is temporarily unavailable. Try again later.

No comments:

Post a Comment