{"action":"created","issue":{"url":"https://api.github.com/repos/scriptcs/scriptcs/issues/840","labels_url":"https://api.github.com/repos/scriptcs/scriptcs/issues/840/labels{/name}","comments_url":"https://api.github.com/repos/scriptcs/scriptcs/issues/840/comments","events_url":"https://api.github.com/repos/scriptcs/scriptcs/issues/840/events","html_url":"https://github.com/scriptcs/scriptcs/issues/840","id":46634439,"number":840,"title":"Error running scriptcs when the full path to the file is provided","user":{"login":"ashutoshraina","id":1003532,"avatar_url":"https://avatars.githubusercontent.com/u/1003532?v=3","gravatar_id":"","url":"https://api.github.com/users/ashutoshraina","html_url":"https://github.com/ashutoshraina","followers_url":"https://api.github.com/users/ashutoshraina/followers","following_url":"https://api.github.com/users/ashutoshraina/following{/other_user}","gists_url":"https://api.github.com/users/ashutoshraina/gists{/gist_id}","starred_url":"https://api.github.com/users/ashutoshraina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashutoshraina/subscriptions","organizations_url":"https://api.github.com/users/ashutoshraina/orgs","repos_url":"https://api.github.com/users/ashutoshraina/repos","events_url":"https://api.github.com/users/ashutoshraina/events{/privacy}","received_events_url":"https://api.github.com/users/ashutoshraina/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scriptcs/scriptcs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/scriptcs/scriptcs/labels/mono","name":"mono","color":"5319e7"},{"url":"https://api.github.com/repos/scriptcs/scriptcs/labels/P3","name":"P3","color":"FFEF00"},{"url":"https://api.github.com/repos/scriptcs/scriptcs/labels/you%20take%20it","name":"you take it","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2014-10-23T14:57:53Z","updated_at":"2015-05-09T11:10:30Z","closed_at":null,"body":"Doing something like \r\n\r\n```\r\n# ashutoshraina at INAshutosr.local in ~/Projects/Scripts [20:23:51]\r\n$ scriptcs HelloWorld.csx\r\nHello World\r\n```\r\nwas ok.\r\n\r\nHowever, something like \r\n\r\n```\r\n# ashutoshraina at INAshutosr.local in ~ [20:22:36]\r\n$ scriptcs \"/Users/ashutoshraina/Projects/Scripts/HelloWorld.csx\" \r\nParameter \"Users/ashutoshraina/Projects/Scripts/HelloWorld.csx\" is not supported!\r\n\r\nUnhandled Exception:\r\nSystem.NullReferenceException: Object reference not set to an instance of an object\r\n  at ScriptCs.Argument.ArgumentHandler.Parse (System.String[] args) [0x00000] in <filename unknown>:0 \r\n  at ScriptCs.Program.ParseArguments (System.String[] args) [0x00000] in <filename unknown>:0 \r\n  at ScriptCs.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 \r\n[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object\r\n  at ScriptCs.Argument.ArgumentHandler.Parse (System.String[] args) [0x00000] in <filename unknown>:0 \r\n  at ScriptCs.Program.ParseArguments (System.String[] args) [0x00000] in <filename unknown>:0 \r\n  at ScriptCs.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 \r\n```\r\n\r\nwas not ok.\r\n\r\nI would expect this to work by default.\r\nNote : I am on a mac."},"comment":{"url":"https://api.github.com/repos/scriptcs/scriptcs/issues/comments/100466089","html_url":"https://github.com/scriptcs/scriptcs/issues/840#issuecomment-100466089","issue_url":"https://api.github.com/repos/scriptcs/scriptcs/issues/840","id":100466089,"user":{"login":"ashutoshraina","id":1003532,"avatar_url":"https://avatars.githubusercontent.com/u/1003532?v=3","gravatar_id":"","url":"https://api.github.com/users/ashutoshraina","html_url":"https://github.com/ashutoshraina","followers_url":"https://api.github.com/users/ashutoshraina/followers","following_url":"https://api.github.com/users/ashutoshraina/following{/other_user}","gists_url":"https://api.github.com/users/ashutoshraina/gists{/gist_id}","starred_url":"https://api.github.com/users/ashutoshraina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashutoshraina/subscriptions","organizations_url":"https://api.github.com/users/ashutoshraina/orgs","repos_url":"https://api.github.com/users/ashutoshraina/repos","events_url":"https://api.github.com/users/ashutoshraina/events{/privacy}","received_events_url":"https://api.github.com/users/ashutoshraina/received_events","type":"User","site_admin":false},"created_at":"2015-05-09T11:10:30Z","updated_at":"2015-05-09T11:10:30Z","body":"From what I know the MAC OSX environment variables are different for apps launched via spotlight and cli...The apps launched from spotlight don't pick up your current path from the profile.."}}