On windows XP, running Apatana Studio 3.
How do I open a windows command (i.e. *.bat) file for editing rather than executing ?
From the ProjectExplorer pane, you can right click a .cmd or .bat file and select [Open With > TextEditor].
Aptana "remembers" this setting, so double clicking this file in the ProjectExplorer pane will continue to open the file for editing.
To go back to execute mode, right-click again but select [Open With > Default Editor]. That's a horrible choice of labelling - i.e. Aptana's Default Editor for .cmd,.bat files actually runs them - it doesn't edit them.
If anyone reading knows a better way, pls comment.
Related
I'm creating a Iexpress package, and no matter what on the final step it pops up the message "Unable to open report file" and stops. I am searching Iexpress.exe and right clicking, then choosing "Run As Administrator" to start it. The problem persists.
I had this error running as my account (domain admin) not specifically telling it to run as administrator, removed spaces then re-ran working fine under Windows 10 1809 you shouldn't need to change to a different application to create .EXE files using IEXPRESS this is working fine under Window 10.
The way to fix this problem:
Go to the folder where your files you want to be in the package are
Go to the top bar (Where it says where you are on your drive), and type iexpress
Do the creation as normal, but the names you give the installer shouldn't have any spaces.
I did it this way without admin permissions.
I ended up moving on to Inno Setup Compiler. Turns out Iexpress isn't supported anymore. I recommend Inno to anyone making their own programs.
This happens when SourceFilesX or TargetName paths in the directive (i.e. the files you've added from the wizard) contain spaces. And while the issue with the TargetName can be fixed with adding double quotes the only workaround I've found about the source files is to put them in a folder path that not contains spaces.
I have one single project folder that I work on every time. I would like that when I start Atom that the project folder is shown and no tabs are open.
I am using Ubutnu 14.04 LTS and Atom 1.5.3.
At the moment, every time I close and reopen Atom, the last session is shown. This is good, because my project folder is always loaded correctly. Unfortunately, all tabs are also open from my previous session.
I have checked under Core Settings -> Open Emty Editor On Start (Automatically open an empty editor on startup). But still, the editor is not empty on startup. Am I missing anything? How can I get this problem solved?
I'm trying to add a right-click menu item (to run a Powershell script) when I click on .jar files but I can't seem to get it to show up. I have tried two different registry locations and neither have shown my right-click command. Any help on what I'm doing wrong? Below are the two ways I've tried it:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.jar\shell\ABC]
#="&ABC"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.jar\shell\ABC\command]
#="<path_to_my_powershell_script> %1"
and
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\jarfile\shell\ABC]
#="&ABC"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\jarfile\shell\ABC\command]
#="<path_to_my_powershell_script> %1"
Again, the issue is not with the script itself (at least not yet), it's with actually getting the command to show up on the right-click menu.
Thanks.
My problem is basically the same than this one but on windows 7:
How to open files of Filezilla in current open Aptana Studio 3
Every file that opened from Filezilla launch a new Aptana3 process, which crashes because the workspace is already used in the other instance.
I had the same issue before but can't remember how I solved it.
I have another computer with Windows7 where it works fine, I compared Filezilla and Aptana settings and they are all the same.
In Filezilla settings I have:
File Editing:
Use custom editor: [aptana path]
Always use custom editor
Filetype associations:
Inherit system filtype associations
Custom filetype associations is empty
Again, that works fine with the same settings on another computer...
Any ideas?
Thanks!
It is a bug in the program - Bug Discussion. Apparently there is a fix but to get to it you have to register at Aptana to view the workaround. Too many hoops and bugs for me so am going to uninstall Aptana and use Netbeans from now on.
we're developing an app that should be able to open specified file with default editor application. (so if it is .doc - it suppose to be opened by MSWord or openOffice)
But I also need to wait until user will close the editor, check if it was changed (by size and date), and upload it to the server.
So the following steps:
1) find def editor
2) open file
3) wait it be closed
4) do smth after that with the file.
now results of my research:
-> opening by def editor is simple: file.openWithDefaultApplication();
but there is no way to know that editor is closed (maybe by checking that file is not locked in timer???)
-> i can start the native process and pass file as parameter BUT looks like the code
NativeApplication.nativeApplication.getDefaultApplication(file.extension);
does not work for any extension :( - it doesnt work for "rtf", "doc" but works for "pdf"... and [file.openWithDefaultApplication()] works fine with any file!
any suggestions?
thx in advance!
but there is no way to know that
editor is closed
Correct. I do not believe what you want to do is possible with AIR. How would AIR be able to tell whether the file is open or not? You might want to look into using NativeProcess; but that would be reliant on the underlying OS/default program exposing APIs to let you know when the program was open and/or closed.
My only suggestion is that you don't have the Air application watch the file, but instead show a popup that say 'click okay when done editing file' and then upload it based on that.
The only other way I can think of this working is if you create both a .bat and a .sh file
(for both windows and macs/linux; select one or the other depending on the os) which open the file you want through NativeProcess (and of course, put 'wait') and then listen for the close event.