Post

Replies

Boosts

Views

Activity

BigSur: Delays in icon display on desktop
After running my iMac (BigSur, now 11.5.2) for a few weeks without rebooting, I notice some strange behaviour of the desktop: When creating files on the desktop, there is a very noticeable delay (tens of seconds) for the file's icon to appear on the desktop. , e.g. when Taking a screenshot with ⇧⌘4 storing it to desktop Dragging files from ~/Downloads to desktop Using print dialog and storing pdf-file to desktop During this delay, the Mac stays fully responsive. I can use or start applications normally, I can delete files on the desktop and the corresponding icons disappear immediately. Activity Monitor or top or vm_stat do not show me anything unusual: No CPU shortage, no memory pressure, no network activity, no unusual disk activity. Also I do not find any helpful messages in Console App. To me, it looks like some kind of contention between threads. Restarting Finder does not help. Only after rebooting the desktop returns to its normal responsive behaviour. The trouble starts again after approximately two weeks without restart. I'm just sure, but I think this problem only occurs since the migration to BigSur. I have no clue what is causing this effect. Any helpful hints welcome Hans-Peter
0
0
342
Sep ’21
osacompile: wrong Event code for path of document generated
macOS BigSur 11.4, I do not know whether the issue described here is new with BigSur. Demo AppleScript: on run argv set the_app to "Preview" tell application "Preview" -- Application is hard-coded set the_doc to front document try set the_result_1 to the path of the_doc on error theError number errorNumber set the_result_1 to (errorNumber as string) & ": " & theError end try end tell tell application the_app -- Application is variable set the_doc to front document try set the_result_2 to the path of the_doc on error theError number errorNumber set the_result_2 to (errorNumber as string) & ": " & theError end try end tell the_result_1 & linefeed & the_result_2 end run When compiled with ScriptEditor, this script returns two times the path of the active document of Preview and the scpt-file can be executed with osascript as well: ~/Desktop % osascript demo-with-preview.scpt  /Users/mb/Downloads/Stones/fract1.jpg /Users/mb/Downloads/Stones/fract1.jpg But when I osacompile the script's text to a.scpt, the second tell-block throws error -1728 because event code FTPc (path of URL) is used instead of ppth (path of Preview's document). ~/Desktop % osascript a.scpt                 /Users/mb/Downloads/Stones/fract1.jpg -1728: „Preview“ hat einen Fehler erhalten: „«class FTPc» of document "fract1.jpg"“ kann nicht gelesen werden.
3
0
762
Jul ’21
Big Sur PrintPlugin: com.apple.automator.createnewemail:1.2.2:failure
After migration from Catalina to Big Sur 11.1 I noticed that an Automator PrintPlugin does not work anymore. It is rather simple and consists of a single action: NewMailMessage. Mac Analytics Data - https://developer.apple.com/forums/content/attachment/5fb4f6a8-e83f-42c6-be5c-84bf1a7501b9 Running the same action from an Automator quickaction on files works as expected: Mail gets generated with selected files attached. regards Hans-Peter
2
0
1k
Dec ’20