====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
script_visual_folder [2014/03/31 14:07] trianguloy |
script_visual_folder [2014/07/22 14:46] (current) trianguloy |
||
---|---|---|---|
Line 2: | Line 2: | ||
* 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|TrianguloY]] | * 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> |