====== Differences ====== This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
script_visual_folder [2014/03/31 14:06] trianguloy created |
script_visual_folder [2014/07/22 14:46] (current) trianguloy |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== About the script ====== | ====== About the script ====== | ||
| * Purpose : This script will automatically detect the position of an item (detached or not) relatively from the actual screen, and then apply it to a folder. | * Purpose : This script will automatically detect the position of an item (detached or not) relatively from the actual screen, and then apply it to a folder. | ||
| - | * Author : https://plus.google.com/u/1/105066926163073195690 | + | * Author : [[https://plus.google.com/u/1/105066926163073195690|TrianguloY]] |
| - | * Link: https://plus.google.com/u/1/105066926163073195690/posts/CE7MFMXbmKs | + | * Link: https://plus.google.com/u/1/105066926163073195690/posts/CE7MFMXbmKs (With video) |
| ====== How to use the script ====== | ====== How to use the script ====== | ||
| Line 17: | Line 17: | ||
| ====== Script code ====== | ====== Script code ====== | ||
| - | <code> | + | <sxh javascript> |
| var item = LL.getEvent().getItem(); | var item = LL.getEvent().getItem(); | ||
| var desk = LL.getEvent().getContainer() || LL.getCurrentDesktop(); | var desk = LL.getEvent().getContainer() || LL.getCurrentDesktop(); | ||
| Line 48: | Line 48: | ||
| - | </code> | + | </sxh> |