![]() ![]() "The xattr which is associated with Catalina’s protected folders is, which is usually (but not always) protected by SIP, so you can’t remove it from the document or folder, which is a real pain. I wouldn’t be surprised if this has something to do with the files ‘’ extended attribute I haven’t yet tried testing to see if there is some kind of ‘timeout’ associated with whatever flag is set after a file has been opened or if that flag survives a restart of the Finder or even host machine. I have noticed that running the above script without the shell script open command, even though the Finder will not open files not recently opened, the script does however set the ‘Last Opened’ value in the Finder window listing to the time at which the Finder open command failed. I assume that opening the file in this way sets some kind of flag. If the file has been previously opened recently, either manually by double clicking on it etc or by using the shell script Open command, then the Finder script will open it. Running the above test script I have discovered… I can confirm that the problem still seems to exists after the 12.3.1 update on my machine (Mac mini 2018) do shell script "open " & quoted form of thisPOSIXfile Set thisPOSIXfile to POSIX path of (thisFile as alias) Set theFiles to every file of (path to documents folder) whose name extension is "pdf" I modified all of my scripts affected by this bug to use ASObjC to open files (as suggested by Shane), everything works fine. ![]() ![]() The first attempt to open the file returns the error message a second attempt often successfully opens the file. I mentioned above that this issue was intermittant, and a controlling factor seems to be whether an attempt was made to open the file recently. It makes no difference if the script is run from Script Debugger, Script Editor, or as an app on the desktop. The document “New Text File 1.txt” could not be opened. It doesn’t seem to matter if I use alias or file specifiers, and the PDF document itself doesn’t appear to make a difference. The file “AppleScript Objective C.pdf” couldn’t be opened because you don’t have permission to view it. When the new owner starts up the Mac, they can use their own information to complete setup.I upgraded to 12.3.1 and, when using the Finder to open a PDF, I now get intermittent error messages like: If you're selling, trading in, or giving away your Mac, quit the setup assistant without completing setup, then click Shut Down. When installation is complete, your Mac might start up to a setup assistant.Your Mac might restart and show a progress bar several times, and the screen might be empty for minutes at a time. Allow installation to complete without putting your Mac to sleep or closing its lid.If the installer doesn't see your disk, or it says that it can't install on your computer or volume, you might need to erase your disk first.If the installer offers the choice between installing on Macintosh HD or Macintosh HD - Data, choose Macintosh HD.If the installer asks to unlock your disk, enter the password that you use to log in to your Mac.Click Continue, then follow the onscreen instructions.When you see a window with the option to reinstall macOS, your Mac has started up from Recovery. Then click Next and enter that user's administrator password, which is the password they use to log in to the Mac. If you're asked to select a user you know the password for, select the user.To select a Wi-Fi network, use the Wi-Fi menu in the upper-right corner of the screen. You might be asked to select a Wi-Fi network or attach a network cable.Keep holding the keys until you see an Apple logo or spinning globe.Shift-Option-Command-R: When you press and hold these four keys at startup, macOS Recovery might offer the macOS that came with your Mac, or the closest version still available.Option-Command-R: When you press and hold these three keys at startup, macOS Recovery might offer the latest macOS that is compatible with your Mac.Command-R: When you press and hold these two keys at startup, macOS Recovery will offer the current version of the most recently installed macOS.If none of them work, review the guidelines for using startup-key combinations. Immediately after releasing the power button, press and hold one of these key combinations.Press and release the power button to turn on your Mac.If you're not using a Mac with Apple silicon, you're using an Intel-based Mac. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |