StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 gesture for opening a subfolder?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

patrickcas

26 Posts

Posted - 04/07/2015 :  03:35:16  Show Profile  Reply with Quote
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
2602 Posts

Posted - 04/08/2015 :  04:39:44  Show Profile  Visit Rob's Homepage  Reply with Quote
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.
Go to Top of Page

patrickcas

26 Posts

Posted - 04/08/2015 :  06:52:35  Show Profile  Reply with Quote
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...
Go to Top of Page

Rob

USA
2602 Posts

Posted - 04/08/2015 :  08:42:51  Show Profile  Visit Rob's Homepage  Reply with Quote
Have you tried using single forward slashes instead?
Go to Top of Page

patrickcas

26 Posts

Posted - 04/08/2015 :  11:24:14  Show Profile  Reply with Quote
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.

Go to Top of Page

patrickcas

26 Posts

Posted - 04/10/2015 :  13:26:26  Show Profile  Reply with Quote
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!


Go to Top of Page

Rob

USA
2602 Posts

Posted - 04/10/2015 :  13:28:25  Show Profile  Visit Rob's Homepage  Reply with Quote
Ah! I thought something was weird about that message after using forward slashes. Glad to hear you solved it.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000