roguemili.blogg.se

Shortcuts app icon
Shortcuts app icon












shortcuts app icon
  1. #Shortcuts app icon how to#
  2. #Shortcuts app icon full#
  3. #Shortcuts app icon code#
  4. #Shortcuts app icon download#

After choosing a magic variable, you can tap on it to reveal several options for the information you can extract.

#Shortcuts app icon code#

One feature that makes them easier to use, and the resulting code easier to understand, is renaming.

#Shortcuts app icon how to#

It’s possible that I’ve finally figured out how to use Shortcuts’s magic variables. Sharp-eyed readers will notice that this shortcut includes no Set Variable steps. The Delete Photos step automatically gives the user the option to cancel the deletion, so there was no need to write any of that code. These steps are also mainly lifted from my earlier screenshot uploading shortcut.įinally, the last two steps delete the icon from Photos. The next eight steps upload the image and, if necessary, run the OptiPNG image compression command.

#Shortcuts app icon full#

Finally, the full name of the uploaded file is assembled from the date, the description, and the extension. The user is then asked to provide the description, with the default as described above. The Match and Replace regexes get rid of that stuff. Many apps, like Annotable, include descriptive bits in their name to make them easier to find. This starts by getting the app’s name and using regular expressions to extract just the part before the first colon or hyphen.

shortcuts app icon

The next five steps set the name for the uploaded file. They’re taken from this shortcut I wrote a couple of months ago. The following four steps get the date strings that will be used to set the folder and the prefix of the image name. We’ll use the extension later to set the name of the uploaded image and to decide whether it’s necessary to run an image compression command.

shortcuts app icon

The next three steps handle the file extension of the saved image, making it all lower case and changing “jpeg” to “jpg.” The latter is probably unnecessary, as icons are (I think) always PNGs, but better safe than sorry.

#Shortcuts app icon download#

They get the icon’s URL, download the image, mask it to round off the corners, and save it to Photos. The first five steps (not counting comments) are taken straight from Federico’s shortcut. If you want to adapt the shortcut for your own use, download it and edit away. I think I’ve reached (or maybe exceeded) the limit of shortcut length that can be comfortably displayed here. Here’s the shortcut itself, with the server information anonymized. The image is now on my blog’s server, in a folder (for the above example) named “images2018” with the name “20181121-App icon for Annotable.png.” The year in the folder name and the date prefix in the file name are handled by the shortcut. The default description is “App icon for app name,” which is what I want most of the time.ĭecide whether to delete the icon image from Photos.

  • Choose Shortcuts from the share sheet and select the Upload App Icon shortcut.Įnter a description for the image.
  • This will bring up the standard share sheet. Tap the three-dots button near the upper left corner of the page and choose Share App… from the popup menu.
  • Go to the App Store entry for the app of interest.
  • Here’s how my Upload App Icon shortcut works: Also, since I’m usually in the App Store at some point when I’m researching or writing a post about an app, it seemed more useful to my work habits to have the shortcut start from the share sheet instead of a search. But to automate the process further, I wanted the shortcut to upload the image to my server and delete the local copy from my iOS device. You can imagine how often this shortcut gets used by the industrial-strength app reviewing team at MacStories, but even a small-timer like me can make use of it. In a nice touch, the corners of the icon are rounded off to appear as they would on your home screen. You select the one you want (or cancel and try again if the search didn’t work) and a 512×512 PNG of the app’s icon appears in your Photos app. Here’s how Federico’s shortcut works: It asks you for a search term and returns the top five hits from the App Store. I soon decided that it would work better for me with a little tweaking. It’s the kind of thing that can be very helpful when writing a blog post about an app, so I installed it. I was scrolling through Federico Viticci’s shortcuts library the other day, looking for something to steal, when I came across this shortcut for finding and saving icons from the App Store. Next post Previous post Extended app icon shortcut














    Shortcuts app icon