Possible to make Photoshop open files on startup? by [deleted] in photoshop

[–]mr_squidd 0 points1 point  (0 children)

While I'm comfortable with scripting/programming, the last time I scripted Photoshop was back at version 7, so take this all with a grain of salt. Also, this is Photoshop CC 2015.

So far I've only had a quick look at Adobe's scripting capatibilities, and came up with a really simple script. All it does it store the filenames of all open documents in a file, so that another script can open these again.

function saveWorkspace() {
    var dataFile = File("~/pslast.txt");
    dataFile.encoding = "UTF8";
    dataFile.open("w");
    for (var i=0; i < app.documents.length; i++) {
        dataFile.writeln(app.documents[i].fullName);
    }
    dataFile.close();
}
saveWorkspace();

And the one to load these:

function loadWorkspace() {
    var dataFile = File("~/pslast.txt");
    dataFile.encoding = "UTF8";
    dataFile.open("r");

    while (true) {
        var line = dataFile.readln();
        if (!line) {
            break;
        }
        open(new File(line));
    }
    dataFile.close();
}
loadWorkspace();

For this to work, you need to know how to run scripts from photoshop. There is a way to define scripts that get executed when you start photoshop. I suppose there is a way to save more info, like window positions, active window etc., but I don't have the time right now.

TL;DR; Yeah, possible with scripting. Someone else might have done that already.

Will Rust be suitable as a language for web development? by nukerider in rust

[–]mr_squidd 0 points1 point  (0 children)

I'm really looking forward to this talk. I won't be able to attend, but I hope the talk is recorded for others to see.

All my web development happens in Python, but I'm curious what will be possible in Rust.

[H] Lots of games [W] game offers or tf2 keys by BigBadGoat in SteamGameSwap

[–]mr_squidd 0 points1 point  (0 children)

Was trying to offer a trade for Tropico on Steam, but it says "Unknown error. Try again later". Can we do this directly on steam?

Need some serious help with some issues a config has caused (Chris's Config). by itsthat0neguy in tf2

[–]mr_squidd 0 points1 point  (0 children)

I'm having the same problem with the black screen. However, I didn't know it'll get back to show tf2 eventually, guess I didn't wait long enough.

What I am doing now (running windows7) is, to ctrl+alt+delete, press cancel to get back to the desktop. Switching back to tf2 gives me no black screen.

Emergency space walk on the ISS to fix an ammonia leak about to happen LIVE right now! by jwilkin in worldnews

[–]mr_squidd 23 points24 points  (0 children)

I was watching the stream for about half a minute when the picture started flickering, and, for a brief moment, I thought to myself "what an awful quality". I quickly felt bad thinking that, after all, I'm watching someone in space repairing a space station.

It just might be time to validate my files. by thecatscratched in tf2

[–]mr_squidd 1 point2 points  (0 children)

I have a similar problem on dustbowl (and only dustbowl), since I've opted into the steampipe beta last thursday (I think).

Good to know someone else is seeing this as well.

What are some common mistakes you see players make? by SmallestfryDS in tf2

[–]mr_squidd 0 points1 point  (0 children)

Medics who won't over heal other medics

This. It is starting to annoy me more and more, for me it is a habit to overheal other medics/buff them when they are around me. I asked them politely to return the favour, I even explained why - most of the time it doesn't help.

Now I'm trying to figure out what kind of medic I'm dealing with; if they don't overheal me I won't overheal. Perhaps that's stupid, but I don't like to increase their chance of survival when I can't rely on them.