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).

!7

p {
  showAnimationInTopRightCorner_on = false;
  final Q q = startQ();
  for (File dir : ll(userDesktopDir(), userDesktopDir("Screenshots"),
    userDesktopDir("screenshots")))
    for (final File f : listFilesWithExtension(dir, ".png"))
      if (swic(f.getName(), "Screenshot_")) q.add(r {
        jpegify(f);
        print("Queue length: " + l(q));
      });
}

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: 517 / 983
Version history: 12 change(s)
Referenced in: [show references]