3/23/2023 0 Comments Pashua macWhen done configuring, click “Create” to build a self-contained application that holds the script inside. Set theResult to showDialog(dialogConfiguration, customLocation)ĭisplay alert "Empty return value" message "It looks like Pashua had some problems using the window configuration.Using the app is easy, drag and drop a script onto the application, give it a name, assign an Output type (progress bar, script output, webkit view, etc), set drag & drop support or not, and adjust a few other variables as necessary. Set dialogConfiguration to my getDialogConfiguration(pashuaLocation) Set pashuaLocation to getPashuaPath(customLocation) Use script "PrefsStorageLib" version "1.0.0" I wasn’t able to make it work in El Capitan, so if you figure out how, please let me know. There’s a good chance that the solution is compatible with Sierra and High Sierra systems, although I haven’t tested (the security measures necessary for making it work with those systems will probably differ from those describe in the installation instructions). The main ones are that transitioning to AppleScript Obj-C presented a fairly steep learning curve for me, and I didn’t really want to pay an annual membership to proliferate what for me has been mostly a hobby. There are a few reasons I never successfully migrated from AppleScript Studio to AppleScript Obj-C in order to provide a fully functional and current version of Desktop Wrap. I worked out a set of simple but reliable calculations for organizing desktop icons to create Desktop Wrap, and I believe that that functionality combined with an example of the joint use of Pashua and PrefStorageLib might be interesting to some. This AppleScript solution is a replacement for an app called Desktop Wrap that I created using AppleScript Studio back in the days when Mac OS X wasn’t very reliable for keeping icons in the same place on the desktop after logging out and back in. That might be useful if you want to customize the options to meet your own requirements. After the AppleScript has been saved as an application, the path to me constructs become established so that the script can be run from within Script Editor.You need the AppleScript if you want a way to set desktop items using the adjustments you made without causing Pashua to display the settings first. Note that the last setting option ( checkbox: Copy static AppleScript to Clipboard) allows you to place the generated icon wrapping commands onto the clipboard so you can create an AppleScript or AppleScript app that can immediately reset the icons with your customized settings.Remember that new icons are always aligned toward the right, so if you want them to stay to the left, you’ll need to run the script again or move new icons manually. Note that there is an option for aligning icons starting from the left, so if you’ve ever wanted your Mac’s desktop to look more like a traditional Windows desktop, here’s your chance.When Pashua opens, the settings will be available in the window along with some guidance. This may happen more than once, so click OK again if needed. When you first launch Wrap.app, the system will prompt you to approve its use.If the Script Libraries folder doesn’t exist in the Library folder of your Home folder, create it. Put the PrefsStorageLib.scptd from the PrefsStorageLib distribution into the Script Libraries folder of the Library folder of your Home folder.Put Pashua.app from the Pashua distribution into your Applications folder.Then select Full Disk Access from the list on the left, then again drag Wrap.app into the list on the right. Select Accessibility from the list on the left, then drag Wrap.app into the list on the right. Open and unlock the Security & Privacy prefpane in System preferences.Adjust Finder preferences to display Hard Disks and other desired items on the desktop.Copy the entire AppleScript source from the code block at the bottom of the post, paste it into a window in Script Editor, save as an application anywhere you like using whatever name you choose.It also provides an example of integrated use of two scripting add-ons, Pashua and PrefsStorageLib. You can use it to arrange the sorting and placement of desktop icons and to generate any number of custom AppleScripts to quickly set desktop icons into a custom arrangement. The AppleScript solution provided here is an open and editable substitute for that application for use in the current macOS. Desktop Wrap is an AppleScript Studio application I created several years ago to simplify keeping desktop icons organized in Mac OS X.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |