Post

Replies

Boosts

Views

Activity

Shortcuts – how do users install and how to use URL scheme ?
I would like to distribute a Shortcut with my AppleScript applet (currently the work is done by an Automator Service). I have two questions: Is it possible to automate the installation for users ? It seems that the only way a shortcut can be installed is via the Shortcuts app. So, when they ask for the Shortcut to be installed, the app must be opened and then users have to respond to the install shortcut dialog and, at least, click on "Add Shortcut". Can that process be automated ? A shortcut can be run from a URL, which is very useful. The URL looks like this: shortcuts://run-shortcut?name=[name of shortcut] However, running a shortcut from a URL always opens the Shortcuts app before running the shortcut. This breaks my code which is expecting a web browser to be active. Is there a way of using at the shortcuts URL scheme run the shortcut in place i.e. without opening the shortcuts app ? Or, can the URL scheme be used to call the Shortcuts Event app ? Thanks.
2
0
1.3k
Apr ’23
Can't get "shortcuts sign" to work
According to the Shortcuts User Guide, the following command should sign a shortcut: shortcuts sign --mode anyone --input "Share me.shortcut" --output "Share me signed.shortcut" I have tried that formulation but get this error: Error: The file couldn’t be opened because it isn’t in the correct format. So, I tried to sign an exported shortcut: shortcuts sign --mode anyone --input /Users/[Home]/Test.shortcut --output /Users/[Home]/Test-signed.shortcut That returns nothing suggesting there was no error. But codesign says: /Users/[Home]/Test-signed.shortcut: code object is not signed at all Is code signing working for shortcuts ? Is there a way to sign a shortcut ?
0
0
777
Apr ’23
Can't get Xcode to parse the code in one file in editor
I'm a beginner so please forgive my use of wrong terminology. I have been working through the Apple tutorial on SwiftUI. I tried to edit the PreviewProvider in "ContentView.swift" made a mistake and tried to revert back. I have checked that the code is now as it was when it worked. But, the code in that file is not showing the same as before – it has none of the colours which show that Xcode has parsed and checked the code. Thus, the canvas is not showing. The code looks like this: Nonetheless, the project builds and runs without error. How can I make Xcode parse a file and thus show the canvas ?
2
1
944
Jan ’24
macOS 15 – Is AppleScript a Gatekeeper workaround ?
I have tried to manually install binaries using Finder by clicking and dragging from the Desktop into "/usr/local/bin/". The binaries come with a collection of frameworks etc. All the binaries are adhoc signed. macOS asks for Admin credentials which is fine. But then, when I execute the binaries in Terminal, Gatekeeper shows the now expected "'[binary"] Not Opened Apple could not verify ........" etc. It shows that dialog for every component and requires user input 2-3 times to allow each component of which there are perhaps dozens. BUT, none of that happens if I install those binaries using AppleScript. So, it might have a call like this: do shell script "curl -L " & download_URL & " -o " & download_binary_zip with administrator privileges do shell script "unzip -o " & download_binary_zip & " -d " & usr_bin_folder with administrator privileges The resulting installs work perfectly. Is this intended ? Using both install methods requires Admin credentials. Why does using a script work but using Finder does not ?
4
0
1.2k
Oct ’24
Can volunteer groups apply for a developer ID ?
There is a volunteer run group on GitHub who maintain a well known public domain cross-platform Python script. They build binaries for Linux, Windows and macOS. The macOS binaries are only ad-hoc signed. Thus, in macOS 15, they are rejected by Gatekeeper – requiring user intervention to be used. There are a lot of components each of which must be approved in "Settings" with admin credentials. It would be best if these binaries were code signed. However, the core group of devs changes over time and so, using one person's name might not be ideal. Can such a volunteer group apply for a developer certificate so that they can sign the macOS binaries ? I ask because Apple's requirements for enrolling in the Development Program include that an organisation be a legal entity and this group is not a legal entity. Thnaks.
0
0
591
Oct ’24
Mac Studio – Wake from sleep – Desktop picture not stretching to fill Desktop
On wake from sleep the Mac Studio's Desktop picture is shown in actual resolution instead of stretched to fit screen. For example, a picture which is 2059 × 1371 is shown at that resolution on a 5K Retina screen and so only fills about 60% of the screen area. It starts with the picture positioned in the top left corner but sometimes moves down the screen. This behaviour does not change if the screen is scaled up or down – the picture size is also scaled. Notice that icons on the Desktop are displayed in the correct position. At the same time, the Dock is shown at the bottom of the picture instead of at the bottom of the screen. Usually, the Desktop redisplays correctly. But increasingly, the only solution is to log out and in again. This might be related to my other question on the Desktop picture Pref Pane. See attached example which is a full screen capture i.e. command-shift-3 (with my personal details obscured):
3
0
1.2k
Jan ’25
AppIcon not showing in "About" box or app switcher
I can't get my app's logo to show in the "About" box nor in the app switcher. I have: created "Assets.xcassets" created "AppIcon" added 10 image files of the logo to the AppIcon image well [? right terminology ?] saved and built the project – there are no errors or warnings When I run the project, I still get the default image showing in the About box and in the app switcher. Because first attempt failed, I changed "applet" to "AppIcon" in "App Icons and Launch Screen" in "General" settings. That did not change the result. I also toggled "Include all app icon assets" which also did not change the result. Weirdly, my app's logo DOES show beside the app name in every item of "Build Settings". Do I need to do something else to change the default image in the "About" box ? Thanks. [Xcode 16.2 on macOS 15.3.2.]
1
0
347
Mar ’25
Shortcuts – how do users install and how to use URL scheme ?
I would like to distribute a Shortcut with my AppleScript applet (currently the work is done by an Automator Service). I have two questions: Is it possible to automate the installation for users ? It seems that the only way a shortcut can be installed is via the Shortcuts app. So, when they ask for the Shortcut to be installed, the app must be opened and then users have to respond to the install shortcut dialog and, at least, click on "Add Shortcut". Can that process be automated ? A shortcut can be run from a URL, which is very useful. The URL looks like this: shortcuts://run-shortcut?name=[name of shortcut] However, running a shortcut from a URL always opens the Shortcuts app before running the shortcut. This breaks my code which is expecting a web browser to be active. Is there a way of using at the shortcuts URL scheme run the shortcut in place i.e. without opening the shortcuts app ? Or, can the URL scheme be used to call the Shortcuts Event app ? Thanks.
Replies
2
Boosts
0
Views
1.3k
Activity
Apr ’23
Can't get "shortcuts sign" to work
According to the Shortcuts User Guide, the following command should sign a shortcut: shortcuts sign --mode anyone --input "Share me.shortcut" --output "Share me signed.shortcut" I have tried that formulation but get this error: Error: The file couldn’t be opened because it isn’t in the correct format. So, I tried to sign an exported shortcut: shortcuts sign --mode anyone --input /Users/[Home]/Test.shortcut --output /Users/[Home]/Test-signed.shortcut That returns nothing suggesting there was no error. But codesign says: /Users/[Home]/Test-signed.shortcut: code object is not signed at all Is code signing working for shortcuts ? Is there a way to sign a shortcut ?
Replies
0
Boosts
0
Views
777
Activity
Apr ’23
Shortcuts – import a workflow => "The file doesn't exist."
I am trying to import an Automator workflow into the Shortcuts app. I have tried all the methods [suggested by Apple] but all fail with this error: I have copied the workflow to various folders and tried again with the same result. Is this a permissions issue ? I'm on macOS 14.1 Sonoma with Shortcuts 7.0.
Replies
0
Boosts
0
Views
886
Activity
Oct ’23
Can't get Xcode to parse the code in one file in editor
I'm a beginner so please forgive my use of wrong terminology. I have been working through the Apple tutorial on SwiftUI. I tried to edit the PreviewProvider in "ContentView.swift" made a mistake and tried to revert back. I have checked that the code is now as it was when it worked. But, the code in that file is not showing the same as before – it has none of the colours which show that Xcode has parsed and checked the code. Thus, the canvas is not showing. The code looks like this: Nonetheless, the project builds and runs without error. How can I make Xcode parse a file and thus show the canvas ?
Replies
2
Boosts
1
Views
944
Activity
Jan ’24
Xcode – Can't see Dynamic Type slider in the Canvas Device Settings
I'm working through Apple's SwiftUI tutorials. At one point it says: Experiment – Adjust the Dynamic Type slider in the Canvas Device Settings The Canvas Device Settings pop-up in Xcode doesn't show the Dynamic Type slider: How can I make the Dynamic Type slider visible ?
Replies
0
Boosts
0
Views
515
Activity
Jan ’24
macOS 15 – Is AppleScript a Gatekeeper workaround ?
I have tried to manually install binaries using Finder by clicking and dragging from the Desktop into "/usr/local/bin/". The binaries come with a collection of frameworks etc. All the binaries are adhoc signed. macOS asks for Admin credentials which is fine. But then, when I execute the binaries in Terminal, Gatekeeper shows the now expected "'[binary"] Not Opened Apple could not verify ........" etc. It shows that dialog for every component and requires user input 2-3 times to allow each component of which there are perhaps dozens. BUT, none of that happens if I install those binaries using AppleScript. So, it might have a call like this: do shell script "curl -L " & download_URL & " -o " & download_binary_zip with administrator privileges do shell script "unzip -o " & download_binary_zip & " -d " & usr_bin_folder with administrator privileges The resulting installs work perfectly. Is this intended ? Using both install methods requires Admin credentials. Why does using a script work but using Finder does not ?
Replies
4
Boosts
0
Views
1.2k
Activity
Oct ’24
Can volunteer groups apply for a developer ID ?
There is a volunteer run group on GitHub who maintain a well known public domain cross-platform Python script. They build binaries for Linux, Windows and macOS. The macOS binaries are only ad-hoc signed. Thus, in macOS 15, they are rejected by Gatekeeper – requiring user intervention to be used. There are a lot of components each of which must be approved in "Settings" with admin credentials. It would be best if these binaries were code signed. However, the core group of devs changes over time and so, using one person's name might not be ideal. Can such a volunteer group apply for a developer certificate so that they can sign the macOS binaries ? I ask because Apple's requirements for enrolling in the Development Program include that an organisation be a legal entity and this group is not a legal entity. Thnaks.
Replies
0
Boosts
0
Views
591
Activity
Oct ’24
Mac Studio – Wake from sleep – Desktop picture not stretching to fill Desktop
On wake from sleep the Mac Studio's Desktop picture is shown in actual resolution instead of stretched to fit screen. For example, a picture which is 2059 × 1371 is shown at that resolution on a 5K Retina screen and so only fills about 60% of the screen area. It starts with the picture positioned in the top left corner but sometimes moves down the screen. This behaviour does not change if the screen is scaled up or down – the picture size is also scaled. Notice that icons on the Desktop are displayed in the correct position. At the same time, the Dock is shown at the bottom of the picture instead of at the bottom of the screen. Usually, the Desktop redisplays correctly. But increasingly, the only solution is to log out and in again. This might be related to my other question on the Desktop picture Pref Pane. See attached example which is a full screen capture i.e. command-shift-3 (with my personal details obscured):
Replies
3
Boosts
0
Views
1.2k
Activity
Jan ’25
SwiftUI – How to disable window resizability in macOS 11 and 12
My app needs to run on macOS 11+. It has one window of fixed size i.e. it should NOT be resizable. .windowResizability(.contentSize) is only available in macOS 13+. How can window resizability be disabled in macOS 11 and 12 ? I'm running Xcode 16.2 on macOS 15.3.2. Thanks.
Replies
2
Boosts
0
Views
427
Activity
Mar ’25
AppIcon not showing in "About" box or app switcher
I can't get my app's logo to show in the "About" box nor in the app switcher. I have: created "Assets.xcassets" created "AppIcon" added 10 image files of the logo to the AppIcon image well [? right terminology ?] saved and built the project – there are no errors or warnings When I run the project, I still get the default image showing in the About box and in the app switcher. Because first attempt failed, I changed "applet" to "AppIcon" in "App Icons and Launch Screen" in "General" settings. That did not change the result. I also toggled "Include all app icon assets" which also did not change the result. Weirdly, my app's logo DOES show beside the app name in every item of "Build Settings". Do I need to do something else to change the default image in the "About" box ? Thanks. [Xcode 16.2 on macOS 15.3.2.]
Replies
1
Boosts
0
Views
347
Activity
Mar ’25