RodgerWW Posted June 11, 2014 Author Share Posted June 11, 2014 I encountered a couple of errors on the last version: On the icon assignment there's an extra else: ... elif [ $SWVER == 10.8 ]; then OSICON=MountainLion.png else # <=== this one elif [ $SWVER == 10.9 ]; then OSICON=Mavericks.png else OSICON=Yosemite.png fi This breaks the workflow. On the other hand, I'm getting the following error, the workflow seems to work despite this: [ERROR: alfred.workflow.input.scriptfilter] Code 0: cat: SPDisplaysDataType: No such file or directory cat: SPDisplaysDataType: No such file or directory /bin/bash: line 119: [: ==: unary operator expected /bin/bash: line 123: [: ==: unary operator expected /bin/bash: line 127: [: ==: unary operator expected Hope it helps. Keep up the nice work. Ooops, I upped the working workflow ... it is now corrected for the ICON. The 'SPDisplaysDataType' error is technically an error, yes, but it just means you do not have the total number of graphics cards that the workflow supports. I get this error too (if I look for it) on my iMac, because it has but one video card. Link to comment
JamesMowery Posted June 13, 2014 Share Posted June 13, 2014 I just wanted to say that I really enjoyed this Workflow. It immediately became useful as I wanted to check my warranty status, and it pops up the serial number and copies it for me. Very nifty, and very nice work! Link to comment
judgejohn82 Posted October 29, 2014 Share Posted October 29, 2014 (edited) Hi, One of my favourite workflows - well done! The only minor issue I have encountered is with an incorrect model of MacBook Pro. I have a 2014, 13" Retina MacBook pro as shown:- However, the app identifies this as a mid-2010 13" non-Retina Macbook Pro. This (perhaps coincidentally?) was my old model of Mac, but I have since tried both resetting the app using the "xabout" command, and also deleting and reinstalling the app but the issue still exists. Any ideas? Edited October 29, 2014 by judgejohn82 Link to comment
RodgerWW Posted October 29, 2014 Author Share Posted October 29, 2014 The only minor issue I have encountered is with an incorrect model of MacBook Pro. However, the app identifies this as a mid-2010 13" non-Retina Macbook Pro. This (perhaps coincidentally?) was my old model of Mac, but I have since tried both resetting the app using the "xabout" command, and also deleting and reinstalling the app but the issue still exists. Any ideas? If you have NOT opened "About This Mac" from your menu bar on a new system or a fresh install ... do so please. THEN, reset the workflow and try again. MANY times this issue arises because the required plist file does not exist unless "About This Mac" from the system menu is run first. Link to comment
jonathanwiesel Posted November 1, 2014 Share Posted November 1, 2014 It would be awesome if this workflow would be uploaded to http://packal.org Link to comment
Yeraze Posted September 6, 2015 Share Posted September 6, 2015 I made a modification to this workflow to improve how it turns the Model Identifier into a text string (it was incorrectly reporting my 2015 Macbook Retina as a mid 2011 MAcbook), and uploaded it to packal : http://www.packal.org/workflow/about-mac I'm kinda new to Packal and this is my first bundle, so let me know if I did something wrong. Link to comment
RodgerWW Posted September 7, 2015 Author Share Posted September 7, 2015 I made a modification to this workflow to improve how it turns the Model Identifier into a text string (it was incorrectly reporting my 2015 Macbook Retina as a mid 2011 MAcbook), and uploaded it to packal : http://www.packal.org/workflow/about-mac I'm kinda new to Packal and this is my first bundle, so let me know if I did something wrong. Thanks for this ... one issue, I don't get my Hardware Icon with this. But I do like your changes and the fact you've put it on Packal! Link to comment
khamza Posted September 8, 2015 Share Posted September 8, 2015 Is it possible to add another entry for storage space? For example, it could show total & free space (and/or used space) for the main volume. And upon clicking on the entry, it would show a new list of storage space entries for each disk->volume. Link to comment
Yeraze Posted September 8, 2015 Share Posted September 8, 2015 (edited) Thanks for this ... one issue, I don't get my Hardware Icon with this. But I do like your changes and the fact you've put it on Packal! If you download and fix that bug, I'll happily update it to a newer version.. otherwise, maybe I'll take a crack at it later tonight. Update 4:16 PM : I found the bug, and fixed it.. apparently "MacBookPro11,3" wasn't in the HardwareIcons.xml .. I added it. If anyone has any other ID's, let me know and we can add them too. Edited September 8, 2015 by Yeraze Link to comment
homever Posted September 12, 2015 Share Posted September 12, 2015 If you download and fix that bug, I'll happily update it to a newer version.. otherwise, maybe I'll take a crack at it later tonight. Update 4:16 PM : I found the bug, and fixed it.. apparently "MacBookPro11,3" wasn't in the HardwareIcons.xml .. I added it. If anyone has any other ID's, let me know and we can add them too. Is there any way, i.e., to change the logic to speed up the whole enquiry process? I tried this workflow out of internet, and it's quick and responsive despite the absence of production year. However, once connecting to internet, it has a delay of around 3-4s to display the info, which is quite annoying. Link to comment
RodgerWW Posted September 12, 2015 Author Share Posted September 12, 2015 If you download and fix that bug, I'll happily update it to a newer version.. otherwise, maybe I'll take a crack at it later tonight. Update 4:16 PM : I found the bug, and fixed it.. apparently "MacBookPro11,3" wasn't in the HardwareIcons.xml .. I added it. If anyone has any other ID's, let me know and we can add them too. My iMac 14,2 is still not showing the hardware icon ... but it wasn't broke with my workflow. Link to comment
Yeraze Posted September 14, 2015 Share Posted September 14, 2015 My iMac 14,2 is still not showing the hardware icon ... but it wasn't broke with my workflow. Can you clear ( rm *.txt mymac.png ) your setup, and verify it? I had something similar going on, but it was that my hardware.txt and mymac.png files had transferred over from another machine.. Link to comment
tone Posted September 18, 2015 Share Posted September 18, 2015 Cool workflow. Thanks for sharing! Update 4:16 PM : I found the bug, and fixed it.. apparently "MacBookPro11,3" wasn't in the HardwareIcons.xml .. I added it. If anyone has any other ID's, let me know and we can add them too. Mine wasn't in there either - MacBookAir6,2. Link to comment
paulw Posted January 31, 2017 Share Posted January 31, 2017 Can you add Macmini7,1 please? Link to comment
RodgerWW Posted February 2, 2017 Author Share Posted February 2, 2017 On 2017-01-31 at 11:37 AM, paulw said: Can you add Macmini7,1 please? XML updated in (For Alfred 3) version. Link to comment
iNinja Posted January 11, 2018 Share Posted January 11, 2018 Could you add support for Macbook Pro 2016? The system identifier is showing early 2014 for my device even after I've opened "about this mac" after the install of the workflow. I have the latest version of this plugin for alfred 3. Link to comment
RodgerWW Posted January 11, 2018 Author Share Posted January 11, 2018 18 minutes ago, iNinja said: Could you add support for Macbook Pro 2016? Can you do me a favour: Open Terminal at the prompt paste the following and hit ENTER: defaults read ~/Library/Preferences/com.apple.SystemProfiler.plist | awk '/CPU Names/{getline;print}' | awk '{$1=$2=""; print $0}' | sed -e 's/"//g' -e 's/);//g' -e 's/(//g' | sed 's/^ *//' Does this give you the correct model identifier? Link to comment
iNinja Posted January 11, 2018 Share Posted January 11, 2018 3 minutes ago, RodgerWW said: Can you do me a favour: Open Terminal at the prompt paste the following and hit ENTER: defaults read ~/Library/Preferences/com.apple.SystemProfiler.plist | awk '/CPU Names/{getline;print}' | awk '{$1=$2=""; print $0}' | sed -e 's/"//g' -e 's/);//g' -e 's/(//g' | sed 's/^ *//' Does this give you the correct model identifier? Unfortunately it did not. It's still saying MacBook Air 13-inch, Early 2014. However, my device is a macbook pro 2016 and it clearly has a touch bar. Link to comment
RodgerWW Posted January 11, 2018 Author Share Posted January 11, 2018 (edited) See, the workflow reads from ~/Library/Preferences/com.apple.SystemProfiler.plist to get the info. So, if that is reading incorrectly, then, I need to find a new way of getting the modern device strings. Can you quick-look the file mentioned, and tell me what the first 4 characters are in the <key> ? IE: mine are F8J9 ... or, in About This Mac from the menu, the last four characters of your MBP. They should match, is what I am getting at. Edited January 11, 2018 by RodgerWW Link to comment
iNinja Posted January 11, 2018 Share Posted January 11, 2018 1 hour ago, RodgerWW said: See, the workflow reads from ~/Library/Preferences/com.apple.SystemProfiler.plist to get the info. So, if that is reading incorrectly, then, I need to find a new way of getting the modern device strings. Can you quick-look the file mentioned, and tell me what the first 4 characters are in the <key> ? IE: mine are F8J9 ... or, in About This Mac from the menu, the last four characters of your MBP. They should match, is what I am getting at. The 4 characters are HF1T Link to comment
RodgerWW Posted January 11, 2018 Author Share Posted January 11, 2018 OK, if the info in the system file is wrong (which is weird but I suppose can happen) DELETE the following file: ~/Library/Preferences/com.apple.SystemProfiler.plist Then, reboot the MBP or simply log out and log back in to the user. Run "About This Mac" once from the Menu so the system recreates the plist you just deleted. Run "xabout" in Alfred to reset the workflow 'About This Mac' Then, HOPEFULLY, the next time you run 'About This Mac' workflow from Alfred, it should display the correct info. Link to comment
iNinja Posted January 11, 2018 Share Posted January 11, 2018 (edited) 1 hour ago, RodgerWW said: OK, if the info in the system file is wrong (which is weird but I suppose can happen) DELETE the following file: ~/Library/Preferences/com.apple.SystemProfiler.plist Then, reboot the MBP or simply log out and log back in to the user. Run "About This Mac" once from the Menu so the system recreates the plist you just deleted. Run "xabout" in Alfred to reset the workflow 'About This Mac' Then, HOPEFULLY, the next time you run 'About This Mac' workflow from Alfred, it should display the correct info. I followed the instructions, but it appears the problem persisted. I'm not sure if this piece of info maybe useful to you or not, but I did own a Macbook Air 13" Early 2014 version previously. I'm not sure why it is still showing up though. Edited January 11, 2018 by iNinja Link to comment
RodgerWW Posted January 11, 2018 Author Share Posted January 11, 2018 (edited) 2 hours ago, iNinja said: I followed the instructions, but it appears the problem persisted. I'm not sure if this piece of info maybe useful to you or not, but I did own a Macbook Air 13" Early 2014 version previously. I'm not sure why it is still showing up though. OK, so it would seem that something in the Alfred workflow folder is not getting cleared in this case. In the workflow folder you will have a text file called "mymac.txt". This text file is more-than-likely showing the system as being the early 2014 model. You also should have a png file called "mymac.png" and it is probably clear/transparent as the identifier for your new system "MacBookPro13,2" is not in the "HardwareIcons.xml" file also in the workflow's folder. First, I would suggest removing not only the workflow, but also any trace of it on the new system. Then download the workflow and install it fresh. (Go to first post/page to download as I have just updated the workflow) Then run the workflow so it can create the above mentioned text file and image ... The text file should be correct now that everything has been removed everywhere and the workflow installed fresh. Edited January 11, 2018 by RodgerWW adding information Link to comment
flome Posted January 11, 2018 Share Posted January 11, 2018 The MBP icon isn't showing up for me, don't know if I missed something, but it looks like something should show up. Awesome workflow! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now