Is there any way to automate a opening files with open dialog box on Mac OS? The application asks user to open files with the standard open dialog box. But I need open files automatically.
The idea is to write script or a small application which will click the button in the target application to open dialog box and then somehow select files which I needed. But I don't know how can I do it. Any suggestions will be very appreciated.
If you already know what file(s) you want to open, then the open file dialog box is usually bypassed completely by the target application.
You'll have to look at the Dictionary for your target application to see if the Open command is defined. If an application is scriptable, then that's going to be one the basics, though each implementation will vary slightly.
If an application doesn't have a Dictionary, you can use the Finder to open the file:
tell application "Finder"
set theApplication to "Path:To:Application.app" as alias
set theFile to "Path:To:File.ext" as alias
open theFile using theApplication
end tell
Related
I am using PyCharm 2020.1. When I create a new file, PyCharm automatically opens it in the editor. Also when I move a directory, PyCharm opens all the files inside the directory in the editor.
Sometimes it's tens of files opened at once. This behavior is frustrating and I would like to turn it off, but have not been able to find where in Preferences to do so.
Someone please help me figure out how to stop newly created files and files inside moved folders from automatically opening in editor. Thanks.
I don't think you can't open a new file via PyCharm, unless you create it via the Terminal tab on the bottom, for example:
touch test.py
When you move a directory into a new directory, there should be a checkmark on a popup saying "Open moved files in editor", so you probably have that checked.
Could anyone send the ATN file with only one action -> opening PSD file on Mac?
I've made an action with a lot of steps, it's working good but only on Windows. There is no relative paths in PS actions, and i have no friend that has Mac. Could anyone prepare ATN file (so i will be able to copy "open psd file" step)?
Regards,
Luke
Short answer: this won't work. Even though Photoshop has "shortcuts" paths that are similar for both OSX and Windown (like ~/Desktop is a shortcut for desktop folder no matter of OS and username), Actions don't seem to recognize them. Furthermore, if you record an Open Action on Windows or Mac and open it in a different OS, you'll get a File or folder not found message for this step:
Here're two examples. In bot cases the top Action was made in Windows and the bottom one on Mac. This is a Mac screenshot:
and Windows:
Notice how Action1 on the Mac screenshot has File or folder not found message and on Windows there's the same message for Action2 from fromMac set.
Here's what you can do though.
insert Open as a Menu Item. This way user will be asked for a file you need every time a user calls the Action.
give the file you need to open as a pattern file (.pat) and ask a user to install it. This way you can fill a document with it using the Fill command.
most powerful: use a script. You can convert your action to a script file using the xtools: there's a script within it called ActionToJavascript: this will give you a .jsx file that you can use in Photoshop and that will work exactly as your action. And in this script you can specify a path for your action. Like here I'm specifying a file on my Desktop:
And this script will work on Mac.
I am trying to develop an application for iPad using Sencha touch which needs to run a local PPT or PPSX file on a button click and return to main application after finishing the presentation .I am not sure whether this is possible.Please share your thoughts..Thanks in advance...
If I understand your problem;
With sencha-touch, code runs on browser, so you could not access local files of users file system except he choose files with a file chooser(but in that case you must upload the file to server).
If you want to open a file without closing your app, you may open file in a new window.
I hope, this gives you some idea.
There's a small feature I have been yearning about in intellij idea and I will give it a try in this forum, maybe it is already possible.
In brief: I want a button that opens the working folder of the project I am working on.
Since this is the folder I put my settings files I am doing the following operation dozens of times a day -
open the run/debug configuration.
go to my activbe project tab.
copy the working directory.
open run (win+r).
paste the folder path and press enter.
X dozens of times.
Is there a way to add a button somewhere that opens my working folder?
BTW: I know that in the project settings - External tools - I can add actions. but there is no workingFolder in the macros. is there a way to add the working folder? (eventhough a button would be better)
Thanks a lot.
If you need to manage files, why not do it right from IntelliJ? If you have to go to explorer, right click any file or folder in the project panel, and there's a "Show in Explorer" option in Windows (no default key mapping). There's also "Show Path" (ctrl+alt+F12), which lets you open Explorer to any parent directory of the selected file all the way up to the drive. Finally, "Copy Path" (ctrl+shift+C) will copy the absolute path to the clipboard. (This is in IDEA 10.5, but I know Copy Path has been there a long time.)
I want to open a mdb file through VB.NET
Currently, I use:
retval = shell("explorer.exe " & filename)
where filename includes the path.
It should open the mdb file in Microsoft Access.
This works fine on Windows 7 (my system), but when I try it on Windows XP (client machine) it comes up with the file download security warning dialog asking to Open, Save or Cancel. If I click Open it presents the same dialog but now with Save and Cancel only.
I am sure there is a quick and easy way to open a file in its proper program through VB.NET. I know I can open the database using Interop, but I don't want to go down that route.
Thanks
You can use Process.Start to launch a program. Some good examples here: http://www.dotnetperls.com/process-start-vbnet
For example:
System.Diagnostics.Process.Start("database.mdb")