Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1017844 // JPEGify all Screenshot_*.png on desktop [WORKS]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (8794L/64K).

1  
!7
2  
3  
p {
4  
  showAnimationInTopRightCorner_on = false;
5  
  final Q q = startQ();
6  
  for (File dir : ll(userDesktopDir(), userDesktopDir("Screenshots"),
7  
    userDesktopDir("screenshots")))
8  
    for (final File f : listFilesWithExtension(dir, ".png"))
9  
      if (swic(f.getName(), "Screenshot_")) q.add(r {
10  
        jpegify(f);
11  
        print("Queue length: " + l(q));
12  
      });
13  
}

Author comment

Began life as a copy of #1015321

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1017844
Snippet name: JPEGify all Screenshot_*.png on desktop [WORKS]
Eternal ID of this version: #1017844/13
Text MD5: 66b4275a31b57ea1b0e964c3bc82be04
Transpilation MD5: 0672fd8d1ebad38b69aa75f691bf14f7
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-06 02:06:58
Source code size: 380 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 532 / 1011
Version history: 12 change(s)
Referenced in: [show references]