Author |
Topic |
|
patrickcas
26 Posts |
Posted - 04/07/2015 : 03:35:16
|
Hi everyone,
I've been trying to create a gesture for opening a given subfolder (D:\Video\_Da vedere)
I tried the usual gesture I use for folders such as d:\Folder (acShellExecute("open", "D:\\Folder\\", "", "", 1)) by replacing the path. I tried these two scripts (which do not work): acShellExecute("open", "D:\\Video\_Da vedere\\", "", "", 1) acShellExecute("open", "D:\\Video\\_Da vedere\\", "", "", 1)
If someone could fix this, I would be very grateful.
thanks, and ciao from Italy. |
|
Rob
USA
2615 Posts |
Posted - 04/08/2015 : 04:39:44
|
I created the folder structure above and this script works on my computer:
acShellExecute("open", "D:\\Video\\_Da vedere\\", "", "", 1)
I'm not sure what is happening on your system that is causing it not to work. Have you tried putting something in place of the acShellExecute call to make sure the code is being executed? Like:
acMessageBox("Da vedere")
... then perform the gesture and see if the message box appears. |
|
|
patrickcas
26 Posts |
Posted - 04/08/2015 : 06:52:35
|
Thank you for your kind reply:
I tried again, and I get either this message: [string "ActionScript"]:18: invalid escape sequence near '\_' or this folder opens: Desktop\Questo PC
It seems that every time I try the gesture, I get 1 error, 1 Questo Pc opened, 1 error, and so on...
|
|
|
Rob
USA
2615 Posts |
Posted - 04/08/2015 : 08:42:51
|
Have you tried using single forward slashes instead? |
|
|
patrickcas
26 Posts |
Posted - 04/08/2015 : 11:24:14
|
Yes, but I keep getting this Lua script error!: [string "ActionScript"]:18: invalid escape sequence near '\_'
I also tried to change the gesture, and I also tried with another subfolder (D:\Video\Telefilm), but it is always the same behaviour.
|
|
|
patrickcas
26 Posts |
Posted - 04/10/2015 : 13:26:26
|
Hi, at the end I solved the riddle: the problem was that the name of the action contained "_": I changed it (keeping the original name of the folder in the directory) and everything runs perfectly!
What a great software this is!
|
|
|
Rob
USA
2615 Posts |
Posted - 04/10/2015 : 13:28:25
|
Ah! I thought something was weird about that message after using forward slashes. Glad to hear you solved it. |
|
|
|
Topic |
|
|
|