{"action":"closed","issue":{"url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/464","labels_url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/464/comments","events_url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/464/events","html_url":"https://github.com/SitecorePowerShell/Console/issues/464","id":102242682,"number":464,"title":"Content Editor:Ribbon - Scripts do not have access to the Selected Item from content Editor","user":{"login":"jasonchester","id":337720,"avatar_url":"https://avatars.githubusercontent.com/u/337720?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonchester","html_url":"https://github.com/jasonchester","followers_url":"https://api.github.com/users/jasonchester/followers","following_url":"https://api.github.com/users/jasonchester/following{/other_user}","gists_url":"https://api.github.com/users/jasonchester/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonchester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonchester/subscriptions","organizations_url":"https://api.github.com/users/jasonchester/orgs","repos_url":"https://api.github.com/users/jasonchester/repos","events_url":"https://api.github.com/users/jasonchester/events{/privacy}","received_events_url":"https://api.github.com/users/jasonchester/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SitecorePowerShell/Console/labels/area-integration","name":"area-integration","color":"0052cc"},{"url":"https://api.github.com/repos/SitecorePowerShell/Console/labels/area-user-interface","name":"area-user-interface","color":"0052cc"},{"url":"https://api.github.com/repos/SitecorePowerShell/Console/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/SitecorePowerShell/Console/labels/regression","name":"regression","color":"f7c6c7"},{"url":"https://api.github.com/repos/SitecorePowerShell/Console/labels/sitecore-8","name":"sitecore-8","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":{"login":"AdamNaj","id":1209953,"avatar_url":"https://avatars.githubusercontent.com/u/1209953?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamNaj","html_url":"https://github.com/AdamNaj","followers_url":"https://api.github.com/users/AdamNaj/followers","following_url":"https://api.github.com/users/AdamNaj/following{/other_user}","gists_url":"https://api.github.com/users/AdamNaj/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamNaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamNaj/subscriptions","organizations_url":"https://api.github.com/users/AdamNaj/orgs","repos_url":"https://api.github.com/users/AdamNaj/repos","events_url":"https://api.github.com/users/AdamNaj/events{/privacy}","received_events_url":"https://api.github.com/users/AdamNaj/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/SitecorePowerShell/Console/milestones/18","html_url":"https://github.com/SitecorePowerShell/Console/milestones/3.3","labels_url":"https://api.github.com/repos/SitecorePowerShell/Console/milestones/18/labels","id":1238161,"number":18,"title":"3.3","description":"","creator":{"login":"AdamNaj","id":1209953,"avatar_url":"https://avatars.githubusercontent.com/u/1209953?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamNaj","html_url":"https://github.com/AdamNaj","followers_url":"https://api.github.com/users/AdamNaj/followers","following_url":"https://api.github.com/users/AdamNaj/following{/other_user}","gists_url":"https://api.github.com/users/AdamNaj/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamNaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamNaj/subscriptions","organizations_url":"https://api.github.com/users/AdamNaj/orgs","repos_url":"https://api.github.com/users/AdamNaj/repos","events_url":"https://api.github.com/users/AdamNaj/events{/privacy}","received_events_url":"https://api.github.com/users/AdamNaj/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":16,"state":"open","created_at":"2015-08-03T12:26:19Z","updated_at":"2015-08-21T10:52:19Z","due_on":"2015-08-30T22:00:00Z","closed_at":null},"comments":2,"created_at":"2015-08-20T21:34:29Z","updated_at":"2015-08-21T10:52:19Z","closed_at":"2015-08-21T10:52:19Z","body":"Forgive me if I am missing something but when launching a script from the content editor ribbon i would expect to have access to the item selected in the content editor.\r\n\r\n**Example Ribbon Script:**\r\n```\r\n\"input: \" + $input\r\n\"input[0]: \" + $input[0]\r\ndir variable:\r\n```\r\n\r\n**URL captured in Browser Missing Id:**\r\n```\r\nhttp://.../sitecore/shell/default.aspx?xmlcontrol=PowerShellRunner&id&db&lang&ver&scriptId=%7BDF525740-8A1A-455F-871A-A7B857E2789E%7D&scriptDb=master\r\n```\r\n\r\n**Script Output where PWD is C:\\windows\\system32\\inetsrv:**\r\n```\r\ninput:\r\ninput[0]:\r\n\r\nName                           Value\r\n----                           -----\r\n$\r\n?                              True\r\n^\r\nAppPath                        C:\\inetpub\\wwwroot\\chescore8.local\\Website\\\r\nAppVPath                       /\r\nargs                           {}\r\nClientData                     Sitecore.Data.SqlServer.SqlServerClientDataStore\r\nClientPage                     ASP.sitecore_shell_default_aspx\r\nConfirmPreference              High\r\nConsoleFileName\r\nDebugPreference                SilentlyContinue\r\nError                          {}\r\nErrorActionPreference          Continue\r\nErrorView                      NormalView\r\nExecutionContext               System.Management.Automation.EngineIntrinsics\r\nfalse                          False\r\nFormatEnumerationLimit         4\r\nHOME\r\nHost                           System.Management.Automation.Internal.Host.InternalHost\r\nHostSettings                   Cognifide.PowerShell.Core.Settings.ApplicationSettings\r\nHttpContext                    System.Web.HttpContext\r\ninput                          System.Collections.ArrayList+ArrayListEnumeratorSimple\r\nMaximumAliasCount              4096\r\nMaximumDriveCount              4096\r\nMaximumErrorCount              256\r\nMaximumFunctionCount           4096\r\nMaximumHistoryCount            4096\r\nMaximumVariableCount           4096\r\nme                             sitecore\\admin\r\nMyInvocation                   System.Management.Automation.InvocationInfo\r\nNestedPromptLevel              0\r\nnull\r\nOutputEncoding                 System.Text.ASCIIEncoding\r\nPID                            7828\r\nProgressPreference             Continue\r\nPSBoundParameters              {}\r\nPSCommandPath                  master:\\system\\Modules\\PowerShell\\Script Library\\Secure Campaign\\Content Editor\\Ribbo...\r\nPSCulture                      en-US\r\nPSDefaultParameterValues       {}\r\nPSEmailServer\r\nPSHOME                         C:\\Windows\\System32\\WindowsPowerShell\\v1.0\r\nPSScript                       Sitecore.Data.Items.Item\r\nPSScriptRoot                   master:\\system\\Modules\\PowerShell\\Script Library\\Secure Campaign\\Content Editor\\Ribbo...\r\nPSSessionApplicationName       wsman\r\nPSSessionConfigurationName     http://schemas.microsoft.com/powershell/Microsoft.PowerShell\r\nPSSessionOption                System.Management.Automation.Remoting.PSSessionOption\r\nPSUICulture                    en-US\r\nPSVersionTable                 {PSVersion, WSManStackVersion, SerializationVersion, CLRVersion...}\r\nPWD                            C:\\windows\\system32\\inetsrv\r\nrequest                        System.Web.HttpRequest\r\nresponse                       System.Web.HttpResponse\r\nScriptSession                  Cognifide.PowerShell.Core.Host.ScriptSession\r\nShellId                        Microsoft.PowerShell\r\nSitecoreContextItem\r\nSitecoreDataFolder             C:\\inetpub\\wwwroot\\chescore8.local\\Data\r\nSitecoreDebugFolder            C:\\inetpub\\wwwroot\\chescore8.local\\Data/debug\r\nSitecoreIndexFolder            C:\\inetpub\\wwwroot\\chescore8.local\\Data/indexes\r\nSitecoreLayoutFolder           C:\\inetpub\\wwwroot\\chescore8.local\\Website\\layouts\r\nSitecoreLogFolder              C:\\inetpub\\wwwroot\\chescore8.local\\Data/logs\r\nSitecoreMediaFolder            C:\\inetpub\\wwwroot\\chescore8.local\\Website\\upload\r\nSitecorePackageFolder          C:\\inetpub\\wwwroot\\chescore8.local\\Data/packages\r\nSitecoreSerializationFolder    C:\\inetpub\\wwwroot\\chescore8.local\\Data/serialization\r\nSitecoreTempFolder             /temp\r\nSitecoreVersion                8.0.150427\r\nStackTrace\r\ntempPath                       C:\\Windows\\TEMP\r\ntmpPath                        C:\\Windows\\TEMP\r\ntrue                           True\r\nVerbosePreference              SilentlyContinue\r\nWarningPreference              Continue\r\nWhatIfPreference               False\r\n```"}}