Search found 4 matches

by Limey
Thu Aug 22, 2019 7:21 am
Forum: Help Me
Topic: Making a layer group active
Replies: 2
Views: 4033

Re: Making a layer group active

Thank you kukurykus! Your answer was just what I needed.

Limey
by Limey
Wed Aug 21, 2019 9:42 pm
Forum: Help Me
Topic: Get online image file size without downloading the file
Replies: 0
Views: 5156

Get online image file size without downloading the file

Is it possible to get the size of an image file from a URL before downloading it? I found the following code online but I read elsewhere that Photoshop/ExtendScript can't use XMLHttpRequest. function getFileSize(url) { var fileSize = ''; var http = new XMLHttpRequest(); http.open('HEAD', url, false)...
by Limey
Fri Jul 26, 2019 12:05 am
Forum: Help Me
Topic: Making a layer group active
Replies: 2
Views: 4033

Making a layer group active

I am trying to make layer groups active in order to rename them. I can do it to a layer outside of a group but not to the group itself. It was my understanding that groups were treated the same as the art layers. Why does the below code only work on art layers and not on layer sets? var doc = app.ac...
by Limey
Wed Apr 18, 2018 11:55 pm
Forum: Help Me
Topic: Selecting a distinct color from an image
Replies: 1
Views: 4573

Selecting a distinct color from an image

This might be asking way too much but I thought i'd put it out there... Project: I have written a script and action that reads file names (col.A) and Hex colors (col.B) from a csv file. First it finds a file from a folder that contains an image of a lamp and shade, it removes the lamp and trims to t...