Post not yet marked as solved
My AppleScript applet has a custom icon file in the bundle (applet.icns). That file is the source of the application icon shown in windows and dialogs.When I code sign the applet using Script Editor the custom icon file is replaced by a vanilla AppleScript applet icon file. I can't fix that after code signing (obvious: changes after code signing are sensed and macOS will not run it).Is there a standard way of preventing the code signing process in Script Editor from removing custom icons ?Thanks.Garry
Post not yet marked as solved
I have an Automator service which works in Safari or Firefox. The service contains an AppleScript that copies the current URL then checks whether a target AppleScript applet is running. If not, it launches the applet and calls a handler inside passing on the URL to that handler. If it is running, the target applet is brought to the front and using GUI scripting a text field value in an already visible dialog is set to the URL.But, workflows "as Services" cannot be granted assistive access so, the GUI scripting part fails. Workflow services are greyed out in the open file dialog of the Security & Privacy prefs pane. Giving the Automator app itself assitive access makes no difference. It seems that assistive access can only be granted to apps or applets.I put the AppleScript code into an applet instead of a Automator workflow. I then manually edited the plist file to add the NSService dictionary details. That applet can be granted assistive access. But, that applet has to be manually registered in the Keyboards pref pane before it appears in the Services menu - just putting a copy in the Services folder didn't work. Also, running it inside Safari takes over a minute before the target applet is launched or brought to the front. So, I'm not much advanced.I've tried getting a workflow service granted assistive access. It's very odd. Workflows are greyed out in the add apps dialog of the Security & Privacy prefs pane. But, you can add a workflow by clicking and dragging:But, that has no effect. I get the following error: So, I located Automator Runner in /System/Library/CoreServices and granted it assistive access:But, that didn't work either. I still got the error that "Automator Runner is not allowed assistive access".So, I'm snookered. I can't find an effective way to have an AppleScript based service granted assistive access. Any help would be great.Garry
Post not yet marked as solved
I have an AppleScript app which installs an associated Automator Service workflow in the Users/[home]/Library/Services/ folder. However, I can't get the Services Menu to update and show the new service. I have tried these commands:pbs -flushpbs -updateI have also tried logging off and on and restarting. But, nothing happens. The new service doesn't even appear in the Keyboard => Shortcuts => Services preferences pane.Is there a way to programmatically force the Services Menu to update with new installed services?Thanks.
I've been testing out the 10.13 public betas as they come through. There has never been an option to convert to APFS. Early on I tried to convert using Disk Utility in the Recovery volume. That stopped the drive from booting and I had to do a clean install. In PB5, the option in Disk Utility to convert to APFS is greyed out.Some online sources have noted that APFS does not work on HDD-only Macs. I have tested APFS on a non-boot drive under 10.12. It was great !But is it likely 10.13 will not boot APFS on HDD-only Macs ?Thanks.
Post not yet marked as solved
In an AppleScript app, I'm downloading a file using curl in a "do shell script" command. The curl starts and AppleScript immediately moves into a loop displaying a Notification until the curl has finished.The notification displays properly during the curl, when running from ScriptEditor. It stays visible on the Desktop until shortly after the curl has finished. But when running the app (i.e. opened in Finder), the Notification doesn't display at all until well after the curl has finished.Here is a summary of the code: set process_id to do shell script "curl -L https://www.downloads.com/latest/downloadthisfile-o /usr/local/bin/downloadthisfile &> /dev/null & echo $!" with administrator privileges set process_name to "downloadthisfile" send_notification(process_id, process_name)-- Handler for sending notification to user while files are downloadingon send_notification(process_id, process_name) repeat do shell script "ps ax | grep " & process_id & " | grep -v grep | awk '{ print $1 }'" if result is "" then exit repeat display notification process_name & " is downloading. Please Wait." with title "Downloading " & downloadthisfile delay 3 end repeatend send_notificationWhy would this work well when running from ScriptEditor but not when running the app itself ?Garry