Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Breaks With Ampersands in Project Names #7

Open
purplespider opened this issue Nov 27, 2014 · 2 comments
Open

Breaks With Ampersands in Project Names #7

purplespider opened this issue Nov 27, 2014 · 2 comments

Comments

@purplespider
Copy link

This workflow isn't working for me, and I believe it's because some of my projects have ampersand symbols in their names.

Entering 'sub' in Alfred, gives this debug error:

[ERROR: alfred.workflow.input.scriptfilter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDomain error 4.)'. Row (null), Col (null): 'Document is empty' in XML:
Warning: SimpleXMLElement::addChild(): unterminated entity reference      Sea Guides in /Users/james/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.970DB83D-6DCD-412A-96EC-18E90E6A822D/sublime.php on line 49

Warning: SimpleXMLElement::addChild(): unterminated entity reference             Van in /Users/james/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.970DB83D-6DCD-412A-96EC-18E90E6A822D/sublime.php on line 49
<?xml version="1.0"?>
<items><item uid="/Users/james/Sites/Deana Rushworth/web/Deana Rushworth.sublime-project" arg="/Users/james/Sites/Deana Rushworth/web/Deana Rushworth.sublime-project"><title>Deana Rushworth</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Cambridge in Africa/web/Cambridge-Africa.sublime-project" arg="/Users/james/Sites/Cambridge in Africa/web/Cambridge-Africa.sublime-project"><title>Cambridge-Africa</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Philipp Metnitz/web metnitz/Metnitz.biz.sublime-project" arg="/Users/james/Sites/Philipp Metnitz/web metnitz/Metnitz.biz.sublime-project"><title>Metnitz.biz</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/SilverStripe Help/web/SilverStripe Help.sublime-project" arg="/Users/james/Sites/SilverStripe Help/web/SilverStripe Help.sublime-project"><title>SilverStripe Help</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_Upside Creative/Eye Candy/web/Eye Candy Illustration Agency.sublime-project" arg="/Users/james/Sites/_Upside Creative/Eye Candy/web/Eye Candy Illustration Agency.sublime-project"><title>Eye Candy Illustration Agency</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/E-Rail/web/E-Rail.sublime-project" arg="/Users/james/Sites/E-Rail/web/E-Rail.sublime-project"><title>E-Rail</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Danish Kids/web/Danish Kids Clothing.sublime-project" arg="/Users/james/Sites/Danish Kids/web/Danish Kids Clothing.sublime-project"><title>Danish Kids Clothing</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_darlingforsyth/Growler Beers/web/Growler Beers UK.sublime-project" arg="/Users/james/Sites/_darlingforsyth/Growler Beers/web/Growler Beers UK.sublime-project"><title>Growler Beers UK</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Applecross Peninsula/Mountian &amp; Sea Guides/web/Mountain &amp; Sea Guides.sublime-project" arg="/Users/james/Sites/Applecross Peninsula/Mountian &amp; Sea Guides/web/Mountain &amp; Sea Guides.sublime-project"><title/><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Hounslow Travel Active/web/Hounslow Travel Active.sublime-project" arg="/Users/james/Sites/Hounslow Travel Active/web/Hounslow Travel Active.sublime-project"><title>Hounslow Travel Active</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_darlingforsyth/Africa in Motion/web/Africa in Motion.sublime-project" arg="/Users/james/Sites/_darlingforsyth/Africa in Motion/web/Africa in Motion.sublime-project"><title>Africa in Motion</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Lets Get Golfing/web-golfmagic/Golf Magic Academy.sublime-project" arg="/Users/james/Sites/Lets Get Golfing/web-golfmagic/Golf Magic Academy.sublime-project"><title>Golf Magic Academy</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Newport Girls High School/web/Newport Girls' High School.sublime-project" arg="/Users/james/Sites/Newport Girls High School/web/Newport Girls' High School.sublime-project"><title>Newport Girls' High School</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_darlingforsyth/Lomax Consulting/web/Lomax Consulting.sublime-project" arg="/Users/james/Sites/_darlingforsyth/Lomax Consulting/web/Lomax Consulting.sublime-project"><title>Lomax Consulting</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Hodos Consulting/web/Hodos Consulting.sublime-project" arg="/Users/james/Sites/Hodos Consulting/web/Hodos Consulting.sublime-project"><title>Hodos Consulting</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_darlingforsyth/Robin Stewart/web/Robin Stewart Hospitality.sublime-project" arg="/Users/james/Sites/_darlingforsyth/Robin Stewart/web/Robin Stewart Hospitality.sublime-project"><title>Robin Stewart Hospitality</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Library/Application Support/sublime text 3/Packages/User/Sublime User Prefs.sublime-project" arg="/Users/james/Library/Application Support/sublime text 3/Packages/User/Sublime User Prefs.sublime-project"><title>Sublime User Prefs</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_darlingforsyth/Sheehan Kelsey Oswald/web/Sheehan Kelsey Oswald.sublime-project" arg="/Users/james/Sites/_darlingforsyth/Sheehan Kelsey Oswald/web/Sheehan Kelsey Oswald.sublime-project"><title>Sheehan Kelsey Oswald</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/_darlingforsyth/beswitchedon/web/7 Steps to Love.sublime-project" arg="/Users/james/Sites/_darlingforsyth/beswitchedon/web/7 Steps to Love.sublime-project"><title>7 Steps to Love</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Finest Man &amp; Van/www/Finest Man &amp; Van.sublime-project" arg="/Users/james/Sites/Finest Man &amp; Van/www/Finest Man &amp; Van.sublime-project"><title/><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item><item uid="/Users/james/Sites/Silverstripe Template/install-ss3/SilverStripe 3 Tempalte.sublime-project" arg="/Users/james/Sites/Silverstripe Template/install-ss3/SilverStripe 3 Tempalte.sublime-project"><title>SilverStripe 3 Tempalte</title><subtitle>Open (new window) or &#x2318; (append) </subtitle><icon>icon.png</icon><valid>1</valid></item></items>

Before both "Sea Guides" and "Van" there is an ampersand in the project name.

@riotbit
Copy link

riotbit commented Nov 28, 2014

Hi James,

I can not reproduce this error with files which have an ampersand in their names. Please send me the two sublime-project files „Sea Guides“ and „Van“, which are mentioned in the error messages you send me. After that I will try my best to fix this problem.

Christian

Am 27.11.2014 um 18:07 schrieb James Cocker [email protected]:

This workflow isn't working for me, and I believe it's because some of my projects have ampersand symbols in their names.

Entering 'sub' in Alfred, gives this debug error:

[ERROR: alfred.workflow.input.scriptfilter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDomain error 4.)'. Row (null), Col (null): 'Document is empty' in XML:
Warning: SimpleXMLElement::addChild(): unterminated entity reference Sea Guides in /Users/james/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.970DB83D-6DCD-412A-96EC-18E90E6A822D/sublime.php on line 49

Warning: SimpleXMLElement::addChild(): unterminated entity reference Van in /Users/james/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.970DB83D-6DCD-412A-96EC-18E90E6A822D/sublime.php on line 49

<title>Deana Rushworth</title>Open (new window) or ⌘ (append) icon.png1<title>Cambridge-Africa</title>Open (new window) or ⌘ (append) icon.png1<title>Metnitz.biz</title>Open (new window) or ⌘ (append) icon.png1<title>SilverStripe Help</title>Open (new window) or ⌘ (append) icon.png1<title>Eye Candy Illustration Agency</title>Open (new window) or ⌘ (append) icon.png1<title>E-Rail</title>Open (new window) or ⌘ (append) icon.png1<title>Danish Kids Clothing</title>Open (new window) or ⌘ (append) icon.png1<title>Growler Beers UK</title>Open (new window) or ⌘ (append) icon.png1<title/>Open (new window) or ⌘ (append) icon.png1<title>Hounslow Travel Active</title>Open (new window) or ⌘ (append) icon.png1<title>Africa in Motion</title>Open (new window) or ⌘ (append) icon.png1<title>Golf Magic Academy</title>Open (new window) or ⌘ (append) icon.png1<title>Newport Girls' High School</title>Open (new window) or ⌘ (append) icon.png1<title>Lomax Consulting</title>Open (new window) or ⌘ (append) icon.png1<title>Hodos Consulting</title>Open (new window) or ⌘ (append) icon.png1<title>Robin Stewart Hospitality</title>Open (new window) or ⌘ (append) icon.png1<title>Sublime User Prefs</title>Open (new window) or ⌘ (append) icon.png1<title>Sheehan Kelsey Oswald</title>Open (new window) or ⌘ (append) icon.png1<title>7 Steps to Love</title>Open (new window) or ⌘ (append) icon.png1<title/>Open (new window) or ⌘ (append) icon.png1<title>SilverStripe 3 Tempalte</title>Open (new window) or ⌘ (append) icon.png1
Before both "Sea Guides" and "Van" there is an ampersand in the project name.


Reply to this email directly or view it on GitHub #7.

@purplespider
Copy link
Author

Sure, here you go: http://spdr.me/EIlH

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants