This question already has answers here:
Saving notepad file as a .vbs
(4 answers)
Closed 6 years ago.
So I have this problem for a little problem right now. I write a simple .vbs script,
x=msgbox("test",18,"test")
which is total perfect, right?
Now everytime I try to save this file like following
It's Dutch for a save as .txt file, but as extension .vbs.
Now I'm curious how stupid I am, or how I'm going to fix this.
Essentially, it is saving it as "test.vbs.txt".
Click the "Save as type" (Opslaan als) dropdown box and select All Files (*.*) (alle dateien?). After that it should save as "test.vbs" as you expect.
It's saving it as a .txt file because the dialog is set to save with that type. You can either select All Files (*.*) from the dropdown or you can surround the file name in quotes to save it exactly as shown.
Related
I'm a newbie and I'm trying to use applescript to able to format text that I copied onto a clipboard then use workflows in automator to make copy pasting quicker.
Whenever I copy from iBooks and paste to a notetaking app, it comes with citations which makes it very tedious to remove when you're trying to compile the notes and summarize. The segment gets put into quotation marks then theres a change in line then the last line Excerpt from...
What I want is remove that last line then remove the 1st and last quotation marks above it. Could someone please tell me the syntax for that? I'm going mad trying to understand coding and workflows :( I'm trying to use automator for that.
I have got 2 batch files, say A.bat and B.bat, which I need to keep open at the same time on my desktop.
When I open the batch file window, I see C:\Windows32\cmd.exe written on top of each window.
This really confuses me as to which window corresponds to which batch file.
Thus, is there a way I can display A on the window corresponding to A.bat and same for B?
I didn't get any cues on the web which brought me here.
Any assistance will be greatly appreciated.
Thanks
Make the first line of each .bat file read:
#Title %~nx0
This question already has answers here:
Display custom header or column in Windows Explorer
(2 answers)
Closed 6 years ago.
When I right click on a column in Windows Explorer, I can choose which columns I want to see.
Where is that kept? Is this a "Shell Extension"? How can I add a new column and change it?
I don't care what language is used, except assembly unless you have to.
edit: A little clarification/example. If I have a text file, and I want it to have a new detail or metadata element, and I want to have that as part of the columns I can choose from to sort with, is that a Windows Shell Extension?
edit: https://msdn.microsoft.com/en-us/library/windows/desktop/bb776831%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
Looks like only XP and below has this.
edit: I think I want this. https://msdn.microsoft.com/en-us/library/windows/desktop/ff728869(v=vs.85).aspx
I believe this is now handled under Property Systems.
https://msdn.microsoft.com/en-us/library/windows/desktop/ff728871(v=vs.85).aspx
Perhaps a sample might be found here,
https://github.com/Microsoft/Windows-classic-samples
or
http://microsoft.github.io/windows/
Close (close enough). Same as, Display custom header or column in Windows Explorer
Also,
https://github.com/Microsoft/Windows-classic-samples/tree/8f31b1ff79d669b4ba9609f2640635b3b8a9e0a4/Samples/Win7Samples/winui/shell/appshellintegration/RecipePropertyHandler
Forgive me if this is the wrong place to look for help, but I have a problem in need of a solution:
We have a large collection of files with unique names that only open up in a specific editor. Embroidery files specifically (.dst or .pof). What I would like to do is print a matching library of these files as .pdfs. So, what I am after is a script or program that will open the file in the editor, print it, close it, and then move onto the next file in the folder till all are output.
Does something like this exist? Is there a custom script I could execute that would accomplish this?
Right, so I'll try and explain this as clearly as possible;
As soon as two files are placed in the folder, I want a Folder Action to
print these files - got that...
but, and this is my problem. At the moment it prints the files after each other, and I want to make sure that they are printed together, duplex.
so far I've got this:
on adding folder items to this_folder after receiving added_items
do shell script "defaults write com.apple.print.custompresets com.apple.print.lastPresetPref Duplex"
tell application "Finder" to print these_items
end adding folder items to
so I reckon I need to combine/append the two files - so the printer sees them as one, and only one print job is the result, thus creating a duplex printed file :D
would be awesome if you have tips/ideas on how to solve this!
cheers!
I found a python script written by Martin Michel which will combine multiple images into one file. It should help you solve your problem... find it here. You may want to use image events to resize the images first before passing it to this script so they will fit properly on one printed page.
You could create a simple Automator Folder action, which would create a multipage PDF from the added image files, then either print it directly in Automator, or pass it on to an AppleScript in order to set your printer preferences.