alexcory Posted March 9, 2014 Share Posted March 9, 2014 Okay so basically I'm trying to make a workflow that helps people quickly reference the alfred workflow directories super easily. I made one partially already but now I'm trying to go a little further. I guess I'm extending the Manage Alfred Extension. What I am trying to accomplish is instead of hitting function to toggle a workflow on or off, I want to simply open the data directory in finder. Is there an easier way to grab the individual data paths? ie: {data} kind of like {query} but it would output the data directory instead of the project folder directory. I posted this to stack overflow to try and get some help. Thanks for any help you can give! Link to comment
alexcory Posted March 9, 2014 Author Share Posted March 9, 2014 Here's a better formatted question http://stackoverflow.com/questions/22289704/how-to-retrieve-data-from-info-plist-xml-document-and-store-into-a-php-array Link to comment
jdfwarrior Posted March 10, 2014 Share Posted March 10, 2014 Here's a better formatted question http://stackoverflow.com/questions/22289704/how-to-retrieve-data-from-info-plist-xml-document-and-store-into-a-php-array In the SO post you are asking how to read the string. You could make a parser or, since its a plist, you could just use the "defaults" command. So... defaults read <path to info.plist> "bundleid" That would read the bundleid in the plist. Link to comment
alexcory Posted March 10, 2014 Author Share Posted March 10, 2014 (edited) How do I put that into my php? ie: $bundle_id = "defaults read " . $plist_subdir . "/info.plist" . '" bundleid"'; Edited March 10, 2014 by AleXander Link to comment
alexcory Posted March 10, 2014 Author Share Posted March 10, 2014 In the SO post you are asking how to read the string. You could make a parser or, since its a plist, you could just use the "defaults" command. So... defaults read <path to info.plist> "bundleid" That would read the bundleid in the plist. Sorry for being such a nube. Just trying to learn! Link to comment
alexcory Posted March 10, 2014 Author Share Posted March 10, 2014 In the SO post you are asking how to read the string. You could make a parser or, since its a plist, you could just use the "defaults" command. So... defaults read <path to info.plist> "bundleid" That would read the bundleid in the plist. I figured it out! Thanks again! 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