Scanjet 200 on Win 7 - no go
Have just purchased a ScanJet 200 and after talking to the "experts" at HP it still does not function. It seams that HP does not have a solution. The error message indicates that "The HP-scanner was not found !. Win system/properties shows the scanner and claims that is works ok. Hope someone can held me ?
Hello JESnet,
Welcome to the HP Forums!
I understand you're receiving a message stating "The HP-scanner was not found". I will do my best to assist you! I am here to offer suggestions and try to resolve this. If you haven't followed this HP document already, then please follow this HP document on 'An error occurred while communicating with scanning device' Message Displays When Scanning (Windows...
If you're receiving the same problem, then I would recommend uninstalling and reinstalling the software, which is indicated from this document. Also, you can try running the Print and Scan Doctor. This tool diagnoses and helps resolve common printing, scanning, and connectivity problems, including: (This information is stated here.)
Connectivity:
USB: Verifies that the USB connection from your computer to the HP product is working correctly.
Network: Verifies that the network connection between your computer and your network is working correctly.
Device Status Test : Checks for device errors such as out of paper, paper jams, carriage stalls, and paper feed issues, and then provides instructions for fixing the error.
Driver Check : Checks for missing or corrupt driver files.
Device Manager : Checks for problems in Device Manager that would prevent printing.
Device Online : Checks if the product has been paused or set to offline, and then sets the status back to online if necessary.
Print Queue : Checks for and clears pending print jobs in the print queue (a log of print jobs waiting to print).
Port Match : Checks the port settings for the HP product.
Device Conflicts : Checks for conflicts with other drivers, such as other printer brands.
Ink Issues : Checks the cartridges and ink levels for issues that affect print quality.
Print Settings : Checks and adjusts the print quality settings.
Test Print : Prints a test page for print quality evaluation, and provides options for cleaning and aligning the printhead if necessary.
Scan Tests : Checks the scan mechanism, drivers, and registry entries.
Please post your results, as I will be looking forward to hearing from you. Have a great night!
I worked on behalf of HP.
Similar Messages
-
HP Scanning in Win 8.1Pro will not launch after pressing buttons on Scanjet 200
When I press a button on the scanner, the software that turns up is the default "scanner" in Win 8.1Pro.
I would prefer the "HP scansoftware" to appear. On other platforms, it works fine after installation but on Win 8.1Pro it seems impossible to accomplish.Hi @JanVranken,
I understand that you are no longer able to launch the HP Scanning software from the printer. I can help you with this.
The Full Software for the printer would need to be installed for this feature to work.
Did you download and install the Full Driver Software for the printer or are you using the Windows Classic drivers?
Here is a link for the HP drivers.
HP Scanjet 200 Flatbed Scanner Drivers.
Select your operating system, click next and click on the software to download and install.
Have a nice day!
Thank You.
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
Gemini02
I work on behalf of HP -
HP Scanjet 200 software on 32 bit Windows
Hi guys,
I have a HP Scanjet 200.
I'm trying to install the scanjet software on a 32 bit windows 7, but it seems that it works only on 64 bit systems. Has anyone been able to install it on a 32 bit machine? I'm talking about the sofware and not the driver. I have installed the driver without problems but I would like to have the software as well.
I appreciate any help.So even though it does not install properly, you get files on your system for the installation?
Clean them out again. IF you can see the software in the list of Uninstall Programs in Windows, then use REVO uninstaller (free version) to do it.
Run Ccleaner registry cleaner
Remove anything left over in AppData, etc.
Just like before. Make sure all files are removed.
NOW try installing from Safe Mode to see if it will install. Safe Mode will turn off all but just the minimal things needed to run Windows. Perhaps an Anti-Virus suite is preventing it.
Did you redownload the software to make sure you have a good copy?
Tap the F8 key on start up (depending on what computer your have) to get the Safe Mode options and choose Safe Mode.
Alternative:
IF you have the Run box enabled in Win 7, go to Start/Run and type msconfig.
in the system configuration window that opens, select the Boot tab and tick the Safe Mode or Safe Boot box with Minimal. Click Apply and restart your computer.
IF you get a bios screen asking which version of Safe Mode to open, choose the first one.
(after your done working in Safe Mode, go to the Configuration box and untick the Safe boot box to restart in Normal mode).
Windows should start in "Safe Mode" now.
Relaunch the installer to see if it works. -
Regarding problem in installation of hp scanjet 200
dear sir
i am facing problem in installing the device as i lost the cd available with device.
i downloaded the installation software from hp website but it now told that hp imaging device not found. pls helpHi @ashu265238
I would like to help you correct the software issue you are now experiencing since installing the Scanjet 200. Since you are seeing a n'HP imaging device not found' message, I suggest using the following document; A 'The HP imaging device was not found' Message Displays.
Although the complete title says this document is for the Officejet J6400 and Photosmart C4300 and C6300, I believe the solutions offered will help with the Scanjet too.
Please click the Thumbs up icon below to thank me for responding.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
Sunshyn2005 - I work on behalf of HP -
HP Scanjet 200 Problems with hpqkyggrp.exe
Good day
I have a new (6 December 2014) HP Scanjet 200. I have a Dell Latitude using Windows 8.1 and it is a 64 bit OS.
I installed the software from the disk. The two desktop shortcuts (HP Scanning and HP Copy) do not work as they both point to hpqkygrp.exe which does not exist on my HDD or on the CD. I then downloaded both driver options from your web site and that did not help. I then unisntalled the software and staerted again from the disk. No use. I then uninstalled and again downloaded the full software from your web site. Still does not work.
PLEEEEEEEEEEASE HELP
Regards
DouglasHi @DouglasTaylor,
Welcome to the HP Forums!
I understand that the desktop icons are not working with your HP Scanjet 200, on Windows 8.1. I am happy to look into this scanning issue for you!
I would recommend to try our HP Print and Scan Doctor, and please let me know what happens!
Hope to hear from you soon!
RnRMusicMan
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" to say “Thanks” for helping! -
HP Scanjet 200 Flatbed Scanner
1. Product Name & Operating System:
HP Scanjet 200 Flatbed Scanner
Windows 7 Ultimate
2. I am using a HP Scanjet 200 Flatbed Scanner now before user of this system used windows xp, but i am suitable with 7 only so i have changed the os and now the scanner is not working, i have installed the cd given with the scanner successfully and the icons also appeared in the desktop but i am getting an error as follows :
The HP imaging device was not found. Try the following steps. After each step, try scanning again.
- Turn off and then unplug the device, wait 60 seconds, and plug in and turn on the device.
- Make sure that the device's power cord and cable are properly attached, plugged in, and the device is on.
- Reboot the computer.
- Uninstall and reinstall the device.
- Reinstall the HP photosmart software that came with the device.
Show extended error information.
So now tell me how to solve this issue i tried all the above instructions but no response from the device but the device is working with another PC next to me. But that was a different department i want this scanner to be working in with my system, help me to solve this issue by online chat or by a call from your representative contact me @ 8148945988 Suresh Kumari also facing same problem .kindly guide me
-
Vostro 200 running Win 7 Pro 64 bit
Computer won't recognize my onboard sound card and only says Microsoft HD Audio. Headset mic won't record. Any help appreciated. Thanks
See here:
http://dellwindowsreinstallationguide.com/driver-sets/vostro-desktops/vostro-200-windows-7-64-bit/ -
Failed to install scanjet G4010 in Win 8.1 32bits
Hi, I upgraded my computer from Win XP to Win 8.1 32bits. I downloaded the correct driver and run it. It failed and provided me with some suggestions. I followed the suggestions to installed latest windows upgrade and then try run it again. But the msi refuses to run again. Any suggestions?
This question was solved.
View Solution.Hi,
What do you mean by refuse to run again?
Do you see anything happens or may nbothing happens once launching and extracting the installation software?
Will you see the error prior clicking on Install or may you not even getting to this screen?
IS there any specific error message?
Please clarify with some more details, I assume from your decription that nothing happens when running the downloaded installation file but it will help confirming it prior guiding you with any furhter steps.
Shlomi
Say thanks by clicking the Kudos thumb up in the post.
If my post resolve your problem please mark it as an Accepted Solution -
Scanjet 200 software not installing correctly
I'm running Win7SP1.64bit.
Some of the software doesn't appear to have installed correctly, therefore the two desktop shortcuts (HP Scanning and HP Copy) do not work (they both point to hpqkygrp.exe which does not exist on my HDD or on the CD (although it could be in a CAB file in the setup folder)).
There are no scanner shortcuts at all in my Start menu - only HP Update.
All the buttons on the scanner do launch the scan app but it only allows me to scan to picture (JPG, BMP, PNG, TIF). I cannot scan to PDF, scan to email, or scan to printer (copy).
In the scan app, if I click to change the scanner I get the oportunity to change the properties... On the Events tab, I should be able to configure the actions associated with each of the four buttons but the only available "Start this program" action is "Scan". All four buttons are set to this action.
Control Panel -> Programs&Features entries are
HP Update,
HP Imaging Device Functions 14.5 and
OCR Software by I.R.I.S. 14.5.
I've installed and uninstalled the driver and the software numerous times with no difference. I've tried the driver on the CD and downloaded the latest driver from the HP website. I've followed all the troubleshooting procedures I can find but none have helped and i've tried googling this elusive hpqkygrp.exe and found diddlysquat.
I have little enough hair left as it is. Can anyone suggest what might be going wrong?I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial printer. You can do this at Scanners.
Click on New Post.
Hope this helps.
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
Gemini02
I work on behalf of HP -
Installing hp scanjet 8270 under Win 7 32 bits
Trying to install the subject scanner under Windows 7 32 bits O. S. Unloaded and installed driver setup_EMC_8270_3.exe, no error message, but no icon on the desktop.Impossible to start a scan from the front panel.Disintalled and reinstalled several times, following HP Support suggestions, with no result.Extremely grateful for any suggestion. Thanks
Hi:
HP does not support your model for 32 bit operating systems.
You will need to go to each of the hardware device component manufacturers websites to see if they have W7 32 bit drivers.
Chipset and graphics: Intel
http://www.intel.com/p/en_US/support/detect/
Audio and ethernet: Realtek
http://www.realtek.com.tw/downloads/ -
After a couple of months of working, all scans are now a page full of narrow vertical coloured lines with a faint image in the background. Have tried everything and reloaded software. I suspect the hardware has failed.
Thanks @Erebus
I see now that yes the printer uses only the USB cable as a source of power;
I think it would be best for you to call us.
Please click the Thumbs up icon below to thank me for responding.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
Sunshyn2005 - I work on behalf of HP -
VPN Client can't reach router or hosts, but can reach other connected sites.
We have a VPN client configuration on a 2901 router. The client passes authentication and connects fine. When connected, cannot reach the 2901 or any devices directly behind it, BUT can reach routers and hosts that are connected to the same 2901 through site to site connections.
Few notes:
I have added some lines excluding NAT in a few different ways, but does not resolve.
I have switched the RAP rool from 10.96.20.x to 172.21.20.x and can then connect to the local host. Appears to be a routing issue to the 10.x network, but I can't seem to find the solution.
Any help would be greatly appreciated. Here is the config:
boot-start-marker
boot system flash
boot system flash:c2900-universalk9-mz.SPA.153-2.T.bin
no ip domain lookup
ip inspect log drop-pkt
ip inspect name FIREWALL tcp
ip inspect name FIREWALL udp
ip inspect name FIREWALL ftp
ip inspect name FIREWALL fragment maximum 256 timeout 1
ip inspect name FIREWALL ntp
ip inspect name FIREWALL pptp
ip inspect name FIREWALL dns
ip inspect name FIREWALL l2tp
ip inspect name FIREWALL pop3
ip inspect name FIREWALL icmp router-traffic
no ipv6 cef
crypto isakmp policy 1
encr aes
authentication pre-share
group 2
crypto isakmp policy 5
encr 3des
authentication pre-share
group 2
crypto isakmp policy 10
encr 3des
hash md5
authentication pre-share
group 2
crypto isakmp policy 95
authentication pre-share
group 2
crypto isakmp policy 99
hash md5
authentication pre-share
group 2
crypto isakmp policy 110
hash md5
authentication pre-share
crypto isakmp client configuration group VPN-RAS
key *********
dns 10.96.17.2 10.1.200.50
wins 10.96.17.2 10.1.200.50
domain mine.com
pool RAPOOL
acl SPLIT
save-password
split-dns mind.com
netmask 255.255.255.0
crypto isakmp profile USERS
match identity group VPN-RAS
client authentication list DOMAIN
isakmp authorization list VPN-RAS
client configuration address respond
keepalive 300 retry 5
crypto ipsec transform-set AES128 esp-aes esp-sha-hmac
mode tunnel
crypto ipsec transform-set 3DES esp-3des esp-sha-hmac
mode tunnel
crypto ipsec transform-set DES esp-des esp-md5-hmac
mode tunnel
crypto ipsec transform-set 3DES-MD5 esp-3des esp-md5-hmac
mode tunnel
crypto ipsec transform-set DES-SHA esp-des esp-sha-hmac
mode tunnel
crypto ipsec transform-set myset esp-3des esp-sha-hmac
mode tunnel
crypto dynamic-map dynmap 1
set transform-set AES128
set isakmp-profile USERS
crypto map COMPANY_VPN 10 ipsec-isakmp
set peer *******
set transform-set 3DES-MD5
match address PA-VPN
qos pre-classify
crypto map COMPANY_VPN 50 ipsec-isakmp
set peer ******
set transform-set AES128
match address VPN
qos pre-classify
crypto map COMPANY_VPN 999 ipsec-isakmp dynamic dynmap
interface Embedded-Service-Engine0/0
no ip address
shutdown
interface GigabitEthernet0/0
ip address 37.222.111.224 255.255.255.248
ip access-group INBOUND in
no ip redirects
no ip unreachables
no ip proxy-arp
ip verify unicast reverse-path
ip flow ingress
ip flow egress
ip nat outside
ip inspect FIREWALL out
ip virtual-reassembly in
duplex auto
speed auto
no cdp enable
no mop enabled
crypto map COMPANY_VPN
interface GigabitEthernet0/1
no ip address
ip flow ingress
duplex auto
speed auto
interface GigabitEthernet0/1.17
description LAN
encapsulation dot1Q 17
ip address 10.96.17.253 255.255.255.0
ip access-group OUTBOUND in
ip flow ingress
ip flow egress
ip nat inside
ip virtual-reassembly in
standby 0 ip 10.96.17.254
standby 0 priority 110
standby 0 preempt
standby 0 track 1 decrement 20
interface GigabitEthernet0/1.27
description VOICE
encapsulation dot1Q 27
ip address 192.168.17.254 255.255.255.0
ip access-group OUTBOUND in
ip helper-address 10.96.17.2
ip flow ingress
ip nat inside
ip virtual-reassembly in
h323-gateway voip bind srcaddr 192.168.17.254
ip local pool RAPOOL 10.96.20.50 10.96.20.150
ip forward-protocol nd
ip nat inside source route-map NAT-POOL interface GigabitEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 37.222.111.223
ip route 10.96.16.0 255.255.255.0 10.96.17.250
ip route 172.22.1.0 255.255.255.0 10.96.17.250
ip route 172.22.2.0 255.255.255.0 10.96.17.250
ip route 172.22.3.0 255.255.255.0 10.96.17.250
ip route 192.168.16.0 255.255.255.0 10.96.17.250
ip access-list extended DMZ
deny ip any 10.0.0.0 0.255.255.255
deny ip any 192.168.0.0 0.0.255.255
permit ip any any
ip access-list extended GUEST
deny ip any 10.0.0.0 0.255.255.255
deny ip any 192.168.0.0 0.0.255.255
permit ip any any
ip access-list extended INBOUND
deny ip 80.25.124.0 0.0.0.255 any
deny ip 10.0.0.0 0.255.255.255 any
deny ip 172.16.0.0 0.15.255.255 any
permit udp host 173.239.147.114 any eq isakmp
permit esp host 173.239.147.114 any
deny ip 192.168.0.0 0.0.255.255 any
permit udp any host 37.222.111.224 eq isakmp
permit udp any host 37.222.111.224 eq non500-isakmp
permit esp any host 37.222.111.224
ip access-list extended NAT
deny ip 10.96.20.0 0.0.0.255 any
deny ip any 10.96.20.0 0.0.0.255
permit ip 192.168.0.0 0.0.255.255 any
permit ip 10.0.0.0 0.255.255.255 any
ip access-list extended NONAT
permit ip any 192.168.0.0 0.0.255.255
permit ip any 10.0.0.0 0.255.255.255
ip access-list extended OUTBOUND
deny udp any host 22.55.77.106 eq isakmp
deny udp any host 22.55.77.106 eq non500-isakmp
deny esp any host 22.55.77.106
permit ip any any
ip access-list extended PA-VPN
permit ip 10.0.0.0 0.255.255.255 10.96.18.0 0.0.0.255
permit ip 10.0.0.0 0.255.255.255 192.168.18.0 0.0.0.255
permit ip 192.168.0.0 0.0.255.255 10.96.18.0 0.0.0.255
permit ip 192.168.0.0 0.0.255.255 192.168.18.0 0.0.0.255
ip access-list extended SPLIT
permit ip 10.0.0.0 0.255.255.255 any
permit ip 192.168.0.0 0.0.255.255 any
ip access-list extended VPN
permit ip 10.96.16.0 0.0.0.255 10.0.0.0 0.255.255.255
permit ip 10.96.17.0 0.0.0.255 10.0.0.0 0.255.255.255
permit ip 10.96.18.0 0.0.0.255 10.0.0.0 0.255.255.255
permit ip 10.96.0.0 0.0.255.255 192.168.0.0 0.0.255.255
permit ip 10.96.0.0 0.0.255.255 10.0.0.0 0.255.255.255
permit ip 192.168.16.0 0.0.0.255 192.168.0.0 0.0.255.255
permit ip 192.168.17.0 0.0.0.255 192.168.0.0 0.0.255.255
permit ip 192.168.18.0 0.0.0.255 192.168.0.0 0.0.255.255
permit ip 192.168.17.0 0.0.0.255 10.0.0.0 0.255.255.255
permit ip 192.168.18.0 0.0.0.255 10.0.0.0 0.255.255.255
permit ip 172.22.0.0 0.0.255.255 10.0.0.0 0.255.255.255
permit ip 172.22.0.0 0.0.255.255 192.168.0.0 0.0.255.255
route-map NAT-POOL deny 5
match ip address NONAT
route-map NAT-POOL permit 10
match ip address NATWe have a VPN client configuration on a 2901 router. The client passes authentication and connects fine. When connected, cannot reach the 2901 or any devices directly behind it, BUT can reach routers and hosts that are connected to the same 2901 through site to site connections.
Few notes:
I have added some lines excluding NAT in a few different ways, but does not resolve.
I have switched the RAP rool from 10.96.20.x to 172.21.20.x and can then connect to the local host. Appears to be a routing issue to the 10.x network, but I can't seem to find the solution.
Any help would be greatly appreciated. Here is the config:
boot-start-marker
boot system flash
boot system flash:c2900-universalk9-mz.SPA.153-2.T.bin
no ip domain lookup
ip inspect log drop-pkt
ip inspect name FIREWALL tcp
ip inspect name FIREWALL udp
ip inspect name FIREWALL ftp
ip inspect name FIREWALL fragment maximum 256 timeout 1
ip inspect name FIREWALL ntp
ip inspect name FIREWALL pptp
ip inspect name FIREWALL dns
ip inspect name FIREWALL l2tp
ip inspect name FIREWALL pop3
ip inspect name FIREWALL icmp router-traffic
no ipv6 cef
crypto isakmp policy 1
encr aes
authentication pre-share
group 2
crypto isakmp policy 5
encr 3des
authentication pre-share
group 2
crypto isakmp policy 10
encr 3des
hash md5
authentication pre-share
group 2
crypto isakmp policy 95
authentication pre-share
group 2
crypto isakmp policy 99
hash md5
authentication pre-share
group 2
crypto isakmp policy 110
hash md5
authentication pre-share
crypto isakmp client configuration group VPN-RAS
key *********
dns 10.96.17.2 10.1.200.50
wins 10.96.17.2 10.1.200.50
domain mine.com
pool RAPOOL
acl SPLIT
save-password
split-dns mind.com
netmask 255.255.255.0
crypto isakmp profile USERS
match identity group VPN-RAS
client authentication list DOMAIN
isakmp authorization list VPN-RAS
client configuration address respond
keepalive 300 retry 5
crypto ipsec transform-set AES128 esp-aes esp-sha-hmac
mode tunnel
crypto ipsec transform-set 3DES esp-3des esp-sha-hmac
mode tunnel
crypto ipsec transform-set DES esp-des esp-md5-hmac
mode tunnel
crypto ipsec transform-set 3DES-MD5 esp-3des esp-md5-hmac
mode tunnel
crypto ipsec transform-set DES-SHA esp-des esp-sha-hmac
mode tunnel
crypto ipsec transform-set myset esp-3des esp-sha-hmac
mode tunnel
crypto dynamic-map dynmap 1
set transform-set AES128
set isakmp-profile USERS
crypto map COMPANY_VPN 10 ipsec-isakmp
set peer *******
set transform-set 3DES-MD5
match address PA-VPN
qos pre-classify
crypto map COMPANY_VPN 50 ipsec-isakmp
set peer ******
set transform-set AES128
match address VPN
qos pre-classify
crypto map COMPANY_VPN 999 ipsec-isakmp dynamic dynmap
interface Embedded-Service-Engine0/0
no ip address
shutdown
interface GigabitEthernet0/0
ip address 37.222.111.224 255.255.255.248
ip access-group INBOUND in
no ip redirects
no ip unreachables
no ip proxy-arp
ip verify unicast reverse-path
ip flow ingress
ip flow egress
ip nat outside
ip inspect FIREWALL out
ip virtual-reassembly in
duplex auto
speed auto
no cdp enable
no mop enabled
crypto map COMPANY_VPN
interface GigabitEthernet0/1
no ip address
ip flow ingress
duplex auto
speed auto
interface GigabitEthernet0/1.17
description LAN
encapsulation dot1Q 17
ip address 10.96.17.253 255.255.255.0
ip access-group OUTBOUND in
ip flow ingress
ip flow egress
ip nat inside
ip virtual-reassembly in
standby 0 ip 10.96.17.254
standby 0 priority 110
standby 0 preempt
standby 0 track 1 decrement 20
interface GigabitEthernet0/1.27
description VOICE
encapsulation dot1Q 27
ip address 192.168.17.254 255.255.255.0
ip access-group OUTBOUND in
ip helper-address 10.96.17.2
ip flow ingress
ip nat inside
ip virtual-reassembly in
h323-gateway voip bind srcaddr 192.168.17.254
ip local pool RAPOOL 10.96.20.50 10.96.20.150
ip forward-protocol nd
ip nat inside source route-map NAT-POOL interface GigabitEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 37.222.111.223
ip route 10.96.16.0 255.255.255.0 10.96.17.250
ip route 172.22.1.0 255.255.255.0 10.96.17.250
ip route 172.22.2.0 255.255.255.0 10.96.17.250
ip route 172.22.3.0 255.255.255.0 10.96.17.250
ip route 192.168.16.0 255.255.255.0 10.96.17.250
ip access-list extended DMZ
deny ip any 10.0.0.0 0.255.255.255
deny ip any 192.168.0.0 0.0.255.255
permit ip any any
ip access-list extended GUEST
deny ip any 10.0.0.0 0.255.255.255
deny ip any 192.168.0.0 0.0.255.255
permit ip any any
ip access-list extended INBOUND
deny ip 80.25.124.0 0.0.0.255 any
deny ip 10.0.0.0 0.255.255.255 any
deny ip 172.16.0.0 0.15.255.255 any
permit udp host 173.239.147.114 any eq isakmp
permit esp host 173.239.147.114 any
deny ip 192.168.0.0 0.0.255.255 any
permit udp any host 37.222.111.224 eq isakmp
permit udp any host 37.222.111.224 eq non500-isakmp
permit esp any host 37.222.111.224
ip access-list extended NAT
deny ip 10.96.20.0 0.0.0.255 any
deny ip any 10.96.20.0 0.0.0.255
permit ip 192.168.0.0 0.0.255.255 any
permit ip 10.0.0.0 0.255.255.255 any
ip access-list extended NONAT
permit ip any 192.168.0.0 0.0.255.255
permit ip any 10.0.0.0 0.255.255.255
ip access-list extended OUTBOUND
deny udp any host 22.55.77.106 eq isakmp
deny udp any host 22.55.77.106 eq non500-isakmp
deny esp any host 22.55.77.106
permit ip any any
ip access-list extended PA-VPN
permit ip 10.0.0.0 0.255.255.255 10.96.18.0 0.0.0.255
permit ip 10.0.0.0 0.255.255.255 192.168.18.0 0.0.0.255
permit ip 192.168.0.0 0.0.255.255 10.96.18.0 0.0.0.255
permit ip 192.168.0.0 0.0.255.255 192.168.18.0 0.0.0.255
ip access-list extended SPLIT
permit ip 10.0.0.0 0.255.255.255 any
permit ip 192.168.0.0 0.0.255.255 any
ip access-list extended VPN
permit ip 10.96.16.0 0.0.0.255 10.0.0.0 0.255.255.255
permit ip 10.96.17.0 0.0.0.255 10.0.0.0 0.255.255.255
permit ip 10.96.18.0 0.0.0.255 10.0.0.0 0.255.255.255
permit ip 10.96.0.0 0.0.255.255 192.168.0.0 0.0.255.255
permit ip 10.96.0.0 0.0.255.255 10.0.0.0 0.255.255.255
permit ip 192.168.16.0 0.0.0.255 192.168.0.0 0.0.255.255
permit ip 192.168.17.0 0.0.0.255 192.168.0.0 0.0.255.255
permit ip 192.168.18.0 0.0.0.255 192.168.0.0 0.0.255.255
permit ip 192.168.17.0 0.0.0.255 10.0.0.0 0.255.255.255
permit ip 192.168.18.0 0.0.0.255 10.0.0.0 0.255.255.255
permit ip 172.22.0.0 0.0.255.255 10.0.0.0 0.255.255.255
permit ip 172.22.0.0 0.0.255.255 192.168.0.0 0.0.255.255
route-map NAT-POOL deny 5
match ip address NONAT
route-map NAT-POOL permit 10
match ip address NAT -
import javax.swing.*;
import java.awt.*;
public class SystemTime{
public static void main(String[] args) {
JFrame win = new JFrame("System Time");
Container contPane = win.getContentPane();
contPane.setBackground(Color.blue);
BorderLayout layM = new BorderLayout();
layM.setHgap(5);
layM.setVgap(5);
contPane.setLayout(layM);
JTextArea tA = new JTextArea(10, 28);
tA.setText(" The Current system time is:");
JScrollPane scrollP = new JScrollPane(tA);
scrollP.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); scrollP.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); contPane.add(scrollP, BorderLayout.CENTER);
JLabel nLab = new JLabel("The Time is updated every 3 seconds");
nLab.setHorizontalAlignment(JLabel.CENTER);
nLab.setOpaque(true);
nLab.setBackground(Color.green);
contPane.add(nLab, BorderLayout.NORTH);
JLabel sLab = new JLabel("Use the scrollbar to go to the latest entry");
sLab.setHorizontalAlignment(JLabel.CENTER);
sLab.setOpaque(true);
sLab.setBackground(Color.green);
contPane.add(sLab, BorderLayout.SOUTH);
win.pack();
win.setVisible(true);
public class TimerTest {
public static void main(String[] args){
String s1;
TimeData t1;
for (int counter = 1; counter >= 5; counter++) {
t1 = new TimeData(System.currentTimeMillis());
s1 = t1.toTimeString();
System.out.println(s1);
if (counter != 5) Timer.pause(3);
// You don't want to wait at the
// end of last iteration
public class TimeData {
private long hours, minutes, seconds;
public TimeData(long millis) {
seconds = (millis/1000)%60;
minutes = (millis/(60*1000))%60;
hours = (millis/(60*60*1000))%24;
public String toTimeString() {
return (String.valueOf(hours) + ":" + String.valueOf(minutes) + ":" + String.valueOf(seconds));
public long getHours() { return hours; }
public long getMinutes() { return minutes; }
public long getSeconds() { return seconds; }
code}
All the code compile and run OK. I am trying to put the System Time in the JFrame and run as an infiniate loop. I manged to use the for loop. I need to have the Time In the Jframe.
as in TimerTest application. Timedata give the output in hours: minutes: seconds.
Please can you assist in solving this problem.is there a reason for the 'long-hand' approach
import javax.swing.*;
import java.awt.*;
class SystemTime{
public static void main(String[] args){
final java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("HH:mm:ss");
final JFrame win = new JFrame(sdf.format(new java.util.Date()));
win.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
win.setSize(200,100);
win.setLocationRelativeTo(null);
win.setVisible(true);
new javax.swing.Timer(1000,new java.awt.event.ActionListener(){
public void actionPerformed(java.awt.event.ActionEvent ae){
win.setTitle(sdf.format(new java.util.Date()));
}).start();
} -
I'm currently work with an old script I found here on the forums. Originally found here: http://forums.adobe.com/thread/488255
I've toyed with it a bit but to no avail, since I have no idea what I am doing.
Basically I want one of the output options to be .PCX format.
#target photoshop
function main(){
var LSets = activeDocument.layerSets.length;
var ArtLayers = activeDocument.artLayers.length;
var NoOfLayers = activeDocument.layers.length;
var Back = hasBackground();
var hasTop = false;
var selLayers =getSelectedLayersIdx();
var selGroups=[];
if(LSets>0){
for(var s in selLayers){
if(isLayerSet(selLayers[s])) selGroups.push(selLayers[s]);
if(activeDocument.layers[0].typename == 'ArtLayer') hasTop = true;
var win = new Window('dialog','Layer Saver');
g = win.graphics;
var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);
g.backgroundColor = myBrush;
win.p1= win.add("panel", undefined, undefined, {borderStyle:"black"});
win.p1.preferredSize=[500,20];
win.g1 = win.p1.add('group');
win.g1.orientation = "row";
win.title = win.g1.add('statictext',undefined,'Layer Saver');
win.title.alignment="fill";
var g = win.title.graphics;
g.font = ScriptUI.newFont("Georgia","BOLDITALIC",22);
win.g5 =win.p1.add('group');
win.g5.orientation = "column";
win.g5.alignChildren='left';
win.g5.spacing=0;
if(LSets == 0){
win.g5.rb1 = win.g5.add('radiobutton',undefined,'Save selected layers');
win.g5.rb2 = win.g5.add('radiobutton',undefined,'Save selected layers along with the top layer');
win.g5.rb3 = win.g5.add('radiobutton',undefined,'Save selected layers along with background layer');
win.g5.rb4 = win.g5.add('radiobutton',undefined,'Save all layers');
win.g5.rb5 = win.g5.add('radiobutton',undefined,'Save all layers along with the top layer');
win.g5.rb6 = win.g5.add('radiobutton',undefined,'Save all layers along with background layer');
win.g5.rb3.enabled=Back;
win.g5.rb6.enabled=Back;
win.g5.rb4.value=true;
}else{
win.g5.rb1 = win.g5.add('radiobutton',undefined,'Save selected layerSets');
win.g5.rb2 = win.g5.add('radiobutton',undefined,'Save selected layerSets along with the top layer');
win.g5.rb3 = win.g5.add('radiobutton',undefined,'Save selected layerSets along with background layer');
win.g5.rb4 = win.g5.add('radiobutton',undefined,'Save all layerSets');
win.g5.rb5 = win.g5.add('radiobutton',undefined,'Save all layerSets along with the top layer');
win.g5.rb6 = win.g5.add('radiobutton',undefined,'Save all layerSets along with background layer');
win.g5.rb3.enabled=Back;
win.g5.rb6.enabled=Back;
win.g5.rb2.enabled=hasTop;
win.g5.rb5.enabled=hasTop;
if(selGroups.length <1){
win.g5.rb1.enabled=false;
win.g5.rb2.enabled=false;
win.g5.rb3.enabled=false;
win.g5.rb4.value=true;
win.p2 = win.add("panel", undefined, undefined, {borderStyle:"black"});
win.p2.preferredSize=[500,20];
win.p2.st1 = win.p2.add('statictext',undefined,'Output details');
win.p2.st1.graphics.font = ScriptUI.newFont("Tahoma", "Bold", 18);
win.g10 =win.p2.add('group');
win.g10.orientation = "row";
win.g10.alignment='left';
win.g10.et1 = win.g10.add('edittext');
win.g10.et1.preferredSize=[350,20];
win.g10.bu1 = win.g10.add('button',undefined,'Select Folder');
win.g10.bu1.onClick=function(){
var Folder1 = Folder(app.activeDocument.path);
outputFolder = Folder.selectDialog("Please select the output folder",Folder1);
if(outputFolder !=null){
win.g10.et1.text = decodeURI(outputFolder.fsName);
win.g12 =win.p2.add('group');
win.g12.orientation = "row";
win.g12.alignment='left';
win.g12.cb1 = win.g12.add('checkbox',undefined,'Merge Visible Layers?');
win.g12.cb2 = win.g12.add('checkbox',undefined,'Trim Layer');
win.g15 =win.p2.add('group');
win.g15.orientation = "row";
win.g15.alignment='left';
var Options= ["Layer/Group Name","FileName + Sequence No.","FileName + Layer/Group Name ","User Defined with Sequence No."];
win.g15.st1 = win.g15.add('statictext',undefined,'Save Options..');
win.g15.dd1 = win.g15.add('dropdownlist',undefined,Options);
win.g15.dd1.selection=0;
win.g15.et1 = win.g15.add('edittext');
win.g15.et1.preferredSize=[150,20];
win.g15.et1.hide();
win.g15.dd1.onChange=function(){
if(this.selection.index==3){
win.g15.et1.show();
}else{
win.g15.et1.hide();
win.g18 =win.p2.add('group');
win.g18.orientation = "row";
win.g18.st1 = win.g18.add('statictext',undefined,'Save as :');
var Types = ["PNG","PCX","PSD","PDF","TIF","JPG"];
win.g18.dd1 = win.g18.add('dropdownlist',undefined,Types);
win.g18.dd1.selection = 0;
win.g18.alignment='left';
win.g20 =win.p2.add('group');
win.g20.orientation = "row";
win.g20.bu1 = win.g20.add('button',undefined,'Process');
win.g20.bu1.preferredSize=[200,35];
win.g20.bu2 = win.g20.add('button',undefined,'Cancel');
win.g20.bu2.preferredSize=[200,35];
win.g20.bu1.onClick=function(){
if(win.g10.et1.text == ''){
alert("No Output Folder has been Selected!");
return;
if(win.g15.dd1.selection.index==3){
if(win.g15.et1.text ==''){
alert("No FileName Has Been Entered!");
return;
win.close(1);
Process();
win.center();
win.show();
function Process(){
if(LSets == 0){
//Process layers only
if(win.g5.rb1.value){//Save selected layers
for(var b in selLayers){
selectLayerByIndex(Number(selLayers[b]));
var lName = activeDocument.activeLayer.name;
var saveFile= File(outputFolder+ "/" + getName(b,lName));
dupLayers();
if(win.g12.cb1.value){
try{activeDocument.mergeVisibleLayers();}catch(e){}
if(win.g12.cb2.value){
try{activeDocument.trim(TrimType.TRANSPARENT,true,true,true,true);}catch(e){}
SaveDOC(saveFile);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}//End Save selected layers
if(win.g5.rb2.value){//Save selected layers along with the top layer
for(var b in selLayers){
selectLayerByIndex(Number(selLayers[b]));
var lName = activeDocument.activeLayer.name;
activeDocument.activeLayer= activeDocument.layers[0];
selectLayerByIndex(Number(selLayers[b]),true);
var saveFile= File(outputFolder+ "/" + getName(b,lName));
dupLayers();
if(win.g12.cb1.value){
try{activeDocument.mergeVisibleLayers();}catch(e){}
if(win.g12.cb2.value){
try{activeDocument.trim(TrimType.TRANSPARENT,true,true,true,true);}catch(e){}
SaveDOC(saveFile);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}//End Save selected layers along with the top layer
if(win.g5.rb3.value){//Save selected layers along with background layer
for(var b in selLayers){
selectLayerByIndex(Number(selLayers[b]));
var lName = activeDocument.activeLayer.name;
activeDocument.activeLayer = activeDocument.layers[activeDocument.layers.length-1];
selectLayerByIndex(Number(selLayers[b]),true);
var saveFile= File(outputFolder+ "/" + getName(b,lName));
dupLayers();
if(win.g12.cb1.value){
try{activeDocument.mergeVisibleLayers();}catch(e){}
if(win.g12.cb2.value){
try{activeDocument.trim(TrimType.TRANSPARENT,true,true,true,true);}catch(e){}
SaveDOC(saveFile);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}//End Save selected layers along with background layer
if(win.g5.rb4.value){//Save all layers
selectAllLayers();
selLayers =getSelectedLayersIdx();
for(var b in selLayers){
selectLayerByIndex(Number(selLayers[b]));
var lName = activeDocument.activeLayer.name;
var saveFile= File(outputFolder+ "/" + getName(b,lName));
dupLayers();
if(win.g12.cb1.value){
try{activeDocument.mergeVisibleLayers();}catch(e){}
if(win.g12.cb2.value){
try{activeDocument.trim(TrimType.TRANSPARENT,true,true,true,true);}catch(e){}
SaveDOC(saveFile);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}//End Save all layers
if(win.g5.rb5.value){//Save all layers along with the top layer
selectAllLayers(1);
selLayers =getSelectedLayersIdx();
for(var b in selLayers){
selectLayerByIndex(Number(selLayers[b]));
var lName = activeDocument.activeLayer.name;
activeDocument.activeLayer = activeDocument.layers[0];
selectLayerByIndex(Number(selLayers[b]),true);
var saveFile= File(outputFolder+ "/" + getName(b,lName));
dupLayers();
if(win.g12.cb1.value){
try{activeDocument.mergeVisibleLayers();}catch(e){}
if(win.g12.cb2.value){
try{activeDocument.trim(TrimType.TRANSPARENT,true,true,true,true);}catch(e){}
SaveDOC(saveFile);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}//End Save all layers along with the top layer
if(win.g5.rb6.value){//Save all layers along with background layer
selectAllLayers();
selLayers =getSelectedLayersIdx();
for(var b in selLayers){
selectLayerByIndex(Number(selLayers[b]));
var lName = activeDocument.activeLayer.name;
activeDocument.activeLayer = activeDocument.layers[activeDocument.layers.length-1];
selectLayerByIndex(Number(selLayers[b]),true);
var saveFile= File(outputFolder+ "/" + getName(b,lName));
dupLayers();
if(win.g12.cb1.value){
try{activeDocument.mergeVisibleLayers();}catch(e){}
if(win.g12.cb2.value){
try{activeDocument.trim(TrimType.TRANSPARENT,true,true,true,true);}catch(e){}
SaveDOC(saveFile);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}//End Save all layers along with background layer
}else{
//Process LayerSets Only
if(win.g5.rb1.value){//Save selected layerSets
for(var g in selGroups){
selectLayerByIndex(Number(selGroups[g]));
var lName = activeDocument.activeLayer.name;
var saveFile= File(outputFolder+ "/" + getName(g,lName));
dupLayers();
if(win.g12.cb1.value){
try{activeDocument.mergeVisibleLayers();}catch(e){}
if(win.g12.cb2.value){
try{activeDocument.trim(TrimType.TRANSPARENT,true,true,true,true);}catch(e){}
SaveDOC(saveFile);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}//End Save selected layerSets
if(win.g5.rb2.value){//Save selected layerSets along with the top layer
for(var g in selGroups){
selectLayerByIndex(Number(selGroups[g]));
var lName = activeDocument.activeLayer.name;
activeDocument.activeLayer= activeDocument.layers[0];
selectLayerByIndex(Number(selGroups[g]),true);
var saveFile= File(outputFolder+ "/" + getName(g,lName));
dupLayers();
if(win.g12.cb1.value){
try{activeDocument.mergeVisibleLayers();}catch(e){}
if(win.g12.cb2.value){
try{activeDocument.trim(TrimType.TRANSPARENT,true,true,true,true);}catch(e){}
SaveDOC(saveFile);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}//End Save selected layerSets along with the top layer
if(win.g5.rb3.value){//Save selected layerSets along with background layer
for(var g in selGroups){
selectLayerByIndex(Number(selGroups[g]));
var lName = activeDocument.activeLayer.name;
activeDocument.activeLayer = activeDocument.layers[activeDocument.layers.length-1];
selectLayerByIndex(Number(selGroups[g]),true);
var saveFile= File(outputFolder+ "/" + getName(g,lName));
dupLayers();
if(win.g12.cb1.value){
try{activeDocument.mergeVisibleLayers();}catch(e){}
if(win.g12.cb2.value){
try{activeDocument.trim(TrimType.TRANSPARENT,true,true,true,true);}catch(e){}
SaveDOC(saveFile);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}//End Save selected layerSets along with background layer
if(win.g5.rb4.value){//Save all layerSets
for(var g =0;g<LSets;g++){
activeDocument.activeLayer = activeDocument.layerSets[g];
var lName = activeDocument.activeLayer.name;
var saveFile= File(outputFolder+ "/" + getName(g,lName));
dupLayers();
if(win.g12.cb1.value){
try{activeDocument.mergeVisibleLayers();}catch(e){}
if(win.g12.cb2.value){
try{activeDocument.trim(TrimType.TRANSPARENT,true,true,true,true);}catch(e){}
SaveDOC(saveFile);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}//End Save all layerSets
if(win.g5.rb5.value){//Save all layerSets along with the top layer
activeDocument.activeLayer = activeDocument.layers[0];
var TopIDX =getSelectedLayersIdx();
for(var g =0;g<LSets;g++){
activeDocument.activeLayer = activeDocument.layerSets[g];
var lName = activeDocument.activeLayer.name;
selectLayerByIndex(Number(TopIDX[0]),true);
var saveFile= File(outputFolder+ "/" + getName(g,lName));
dupLayers();
if(win.g12.cb1.value){
try{activeDocument.mergeVisibleLayers();}catch(e){}
if(win.g12.cb2.value){
try{activeDocument.trim(TrimType.TRANSPARENT,true,true,true,true);}catch(e){}
SaveDOC(saveFile);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}//End Save all layerSets along with the top layer
if(win.g5.rb6.value){//Save all layerSets along with background layer
for(var g =0;g<LSets;g++){
activeDocument.activeLayer = activeDocument.layerSets[g];
var lName = activeDocument.activeLayer.name;
selectLayerByIndex(0,true);
var saveFile= File(outputFolder+ "/" + getName(g,lName));
dupLayers();
if(win.g12.cb1.value){
try{activeDocument.mergeVisibleLayers();}catch(e){}
if(win.g12.cb2.value){
try{activeDocument.trim(TrimType.TRANSPARENT,true,true,true,true);}catch(e){}
SaveDOC(saveFile);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}//End Save all layerSets along with background layer
function getName(seq,lName){
seq = zeroPad((Number(seq)+1), 3);
var dName = decodeURI(activeDocument.name).replace(/\.[^\.]+$/, '');
var Name ='';
switch (Number(win.g15.dd1.selection.index)){
case 0: Name += lName; break;
case 1: Name += dName +"-"+seq; break;
case 2: Name += dName +"-"+ lName; break;
case 3: Name += win.g15.et1.text + "-"+seq; break;
default :break;
return Name;
function SaveDOC(saveFile){
switch(Number(win.g18.dd1.selection.index)){
case 0 : SavePNG(File(saveFile+".png")); break;
case 1 : SavePCX(File(saveFile+".pcx")); break;
case 2: SavePSD(File(saveFile+".psd")); break;
case 3: SavePDF(File(saveFile+".pdf")); break;
case 4: SaveTIFF(File(saveFile+".tif")); break;
case 5: SaveJPG(File(saveFile+".jpg"),12); break;
default : break;
main();
function hasBackground() {
var ref = new ActionReference();
ref.putProperty( charIDToTypeID("Prpr"), charIDToTypeID( "Bckg" ));
ref.putEnumerated(charIDToTypeID( "Lyr " ),charIDToTypeID( "Ordn" ),charIDToTypeID( "Back" ));
var desc = executeActionGet(ref);
var res = desc.getBoolean(charIDToTypeID( "Bckg" ));
return res
function getSelectedLayersIdx(){
var selectedLayers = new Array;
var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
var desc = executeActionGet(ref);
if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
var c = desc.count
var selectedLayers = new Array();
for(var i=0;i<c;i++){
try{
activeDocument.backgroundLayer;
selectedLayers.push( desc.getReference( i ).getIndex() );
}catch(e){
selectedLayers.push( desc.getReference( i ).getIndex()+1 );
}else{
var ref = new ActionReference();
ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
try{
activeDocument.backgroundLayer;
selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1);
}catch(e){
selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" )));
return selectedLayers;
function isLayerSet(idx) {
var ref = new ActionReference();
ref.putIndex(1283027488, idx);
var desc = executeActionGet(ref);
var type = desc.getEnumerationValue(stringIDToTypeID("layerSection"));
var res = typeIDToStringID(type);
if(res == 'layerSectionStart') return true;
return false;
function dupLayers() {
var desc143 = new ActionDescriptor();
var ref73 = new ActionReference();
ref73.putClass( charIDToTypeID('Dcmn') );
desc143.putReference( charIDToTypeID('null'), ref73 );
desc143.putString( charIDToTypeID('Nm '), activeDocument.activeLayer.name );
var ref74 = new ActionReference();
ref74.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
desc143.putReference( charIDToTypeID('Usng'), ref74 );
executeAction( charIDToTypeID('Mk '), desc143, DialogModes.NO );
function selectLayerByIndex(index,add){
add = (add == undefined) ? add = false : add;
var ref = new ActionReference();
ref.putIndex(charIDToTypeID("Lyr "), index);
var desc = new ActionDescriptor();
desc.putReference(charIDToTypeID("null"), ref );
if(add) desc.putEnumerated( stringIDToTypeID( "selectionModifier" ), stringIDToTypeID( "selectionModifierType" ), stringIDToTypeID( "addToSelection" ) );
desc.putBoolean( charIDToTypeID( "MkVs" ), false );
try{
executeAction(charIDToTypeID("slct"), desc, DialogModes.NO );
}catch(e){}
function selectAllLayers(layer) {//does not select background layer
if(layer == undefined) layer = 0;
activeDocument.activeLayer = activeDocument.layers[activeDocument.layers.length-1];
if(activeDocument.activeLayer.isBackgroundLayer)
activeDocument.activeLayer = activeDocument.layers[activeDocument.layers.length-2];
var BL = activeDocument.activeLayer.name;
activeDocument.activeLayer = activeDocument.layers[layer];
var desc5 = new ActionDescriptor();
var ref3 = new ActionReference();
ref3.putName( charIDToTypeID('Lyr '), BL);
desc5.putReference( charIDToTypeID('null'), ref3 );
desc5.putEnumerated( stringIDToTypeID('selectionModifier'), stringIDToTypeID('selectionModifierType'), stringIDToTypeID('addToSelectionContinuous') );
desc5.putBoolean( charIDToTypeID('MkVs'), false );
executeAction( charIDToTypeID('slct'), desc5, DialogModes.NO );
function zeroPad(n, s) {
n = n.toString();
while (n.length < s) n = '0' + n;
return n;
function SavePNG(saveFile){
pngSaveOptions = new PNGSaveOptions();
activeDocument.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE);
function SavePCX(saveFile){
pcxSaveOptions = new PCXSaveOptions();
activeDocument.saveAs(saveFile, pcxSaveOptions, true, Extension.LOWERCASE);
function SaveTIFF(saveFile){
tiffSaveOptions = new TiffSaveOptions();
tiffSaveOptions.embedColorProfile = true;
tiffSaveOptions.alphaChannels = true;
tiffSaveOptions.layers = true;
tiffSaveOptions.imageCompression = TIFFEncoding.TIFFLZW;
activeDocument.saveAs(saveFile, tiffSaveOptions, true, Extension.LOWERCASE);
function SavePSD(saveFile){
psdSaveOptions = new PhotoshopSaveOptions();
psdSaveOptions.embedColorProfile = true;
psdSaveOptions.alphaChannels = true;
activeDocument.saveAs(saveFile, psdSaveOptions, true, Extension.LOWERCASE);
function SavePDF(saveFile){
pdfSaveOptions = new PDFSaveOptions();
activeDocument.saveAs(saveFile, pdfSaveOptions, true, Extension.LOWERCASE);
function SaveJPG(saveFile, jpegQuality){
jpgSaveOptions = new JPEGSaveOptions();
jpgSaveOptions.embedColorProfile = true;
jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
jpgSaveOptions.matte = MatteType.NONE;
jpgSaveOptions.quality = jpegQuality; //1-12
activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE);
I purely guessed that this was the line of script to save as a PCX file but it didn't work upon execution. It isolates a group to save but then just stops.
function SavePCX(saveFile){
pcxSaveOptions = new PCXSaveOptions();
activeDocument.saveAs(saveFile, pcxSaveOptions, true, Extension.LOWERCASE);
I've been looking everywhere for an answer, but it seems like not one has ever had to have a script like this. I'm running CS6 of that helps.c.pfaffenbichler wrote: Where in the documentation did you find the class PCXSaveOptions? I can’t find it in ESTK’s Object Model Viewer.
I'm not familiar with this coding whatsoever, so I just guessed based on PNG's save function. I copy pasted and guessed hoping it would work.
c.pfaffenbichler wrote:
I guess you should record a PCX-save with ScriptingListener.plugin and then use the resulting Action Manager-code wrapped in a function.
I used the recommended plugin and got this in the log:
var idsave = charIDToTypeID( "save" );
var desc2 = new ActionDescriptor();
var idAs = charIDToTypeID( "As " );
desc2.putString( idAs, """PCX""" );
var idIn = charIDToTypeID( "In " );
desc2.putPath( idIn, new File( "Y:\\RSP001.pcx" ) );
var idDocI = charIDToTypeID( "DocI" );
desc2.putInteger( idDocI, 314 );
var idsaveStage = stringIDToTypeID( "saveStage" );
var idsaveStageType = stringIDToTypeID( "saveStageType" );
var idsaveBegin = stringIDToTypeID( "saveBegin" );
desc2.putEnumerated( idsaveStage, idsaveStageType, idsaveBegin );
executeAction( idsave, desc2, DialogModes.NO );
I have no clue what I am looking for. -
Here's my dilemma:
My boss wants a simple way to create his Web Photo Galleries and since he's not so tech savvy, he's recruited me. The company he bought his website from gave him this wonderful "zoom" feature if he uploads a "hires" folder, but the multiple Actions they gave cause him "too much work." I've messed with Bridge Output, the old Web Photo Gallery from the Optional Plug-Ins, and creating Actions, but nothing seems to do it all at once. Looking at some of the scripts and what they can do has led me to ask here...
He only needs 3 folders to upload:
"thumbnails" folder -- (images sized to 75px; jpeg quality: 5)
"images" folder -- (images sized to 450px; jpeg quality: 5)
"hires" folder -- (images sized to 800px; jpeg quality: 5)
Bridge Output only does the "thumbnails" and "images" and if I make an Action for the "hires" he has to create the folder himself and the image doesn't resize correctly like they do for Bridge Output (ex. I can constrain height OR width, but if there are a mix of horizontal/vertical pictures it doesn't differentiate between height and width.)
It would be nice if Bridge Output offered a "Create Hi-Res folder" option.
I'm working with CS4 on Windows XP.
Can anyone offer suggestions or a script (with basic directions) to help me out here?Please try this now, it's a complete re-write and now tells you when it's finished.
#target bridge
if( BridgeTalk.appName == "bridge" ) {
TIH = MenuElement.create("command", "Thumbnails-Image-Hires", "at the end of Thumbnail");
TIH.onSelect = function () {
ThumbnailCreator();
function ThumbnailCreator(){
Prefs = File("~/BridgeThumbNailSticky.dat");
Sticky ={};
if(Prefs.exists){
Prefs.open('r');
Sticky = eval(Prefs.read());
Prefs.close();
var win = new Window( 'dialog', 'Compliments Adobe Forum' );
g = win.graphics;
var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);
g.backgroundColor = myBrush;
win.alignChildren="row";
win.g10 = win.add('group');
win.g10.orientation = "row";
win.title = win.g10.add('statictext',undefined,'Thumbnail Creator');
win.title.alignment="bottom";
var g = win.title.graphics;
g.font = ScriptUI.newFont("Georgia","BOLDITALIC",26);
win.p1= win.add("panel", undefined, undefined, {borderStyle:"black"});
win.p1.alignChildren="fill";
win.p2= win.p1.add("panel", undefined, undefined, {borderStyle:"black"});
win.g11 =win.p2.add('group');
win.g11.spacing=10;
win.g11.orientation = 'column';
win.g11.alignment="left";
win.g11.st1 = win.g11.add('statictext',undefined,'Top Level Folder Name');
win.g11.et1 = win.g11.add('edittext');
win.g11.et1.preferredSize=[380,20];
win.g11.et1.active=true;
win.p3= win.p1.add("panel", undefined, undefined, {borderStyle:"black"});
win.g14 =win.p3.add('group');
win.g14.spacing=0;
win.g14.orientation = 'row';
win.g14.alignment="left";
win.g14.st1 = win.g14.add('statictext',undefined,"thumbnails");
win.g14.st1.preferredSize=[65,20];
win.g14.et1 = win.g14.add('edittext');
win.g14.et1.preferredSize=[50,20];
win.g14.st1 = win.g14.add('statictext',undefined,"px");
win.g14.et2 = win.g14.add('edittext');
win.g14.et2.preferredSize=[100,20];
win.g14.et2.visible=false;
win.g14.st3 = win.g14.add('statictext',undefined,"Quality");
win.g14.st3.preferredSize=[60,20];
win.g14.dd1 = win.g14.add('dropdownlist');
for(var a =1;a<101;a++){
win.g14.dd1.add("item", a);
win.g14.dd1.selection=0;
win.g14.et1.onChanging = function() {
if (this.text.match(/[^\d]/)) {
this.text = this.text.replace(/[^\d]/g, '');
win.p4= win.p1.add("panel", undefined, undefined, {borderStyle:"black"});
win.g24 =win.p4.add('group');
win.g24.spacing=0;
win.g24.orientation = 'row';
win.g24.alignment="left";
win.g24.st1 = win.g24.add('statictext',undefined,"images");
win.g24.st1.preferredSize=[65,20];
win.g24.et1 = win.g24.add('edittext');
win.g24.et1.preferredSize=[50,20];
win.g24.st2 = win.g24.add('statictext',undefined,"px");
win.g24.et2 = win.g24.add('edittext');
win.g24.et2.preferredSize=[100,20];
win.g24.et2.visible=false;
win.g24.st3 = win.g24.add('statictext',undefined,"Quality");
win.g24.st3.preferredSize=[60,20];
win.g24.dd1 = win.g24.add('dropdownlist');
for(var a =1;a<101;a++){
win.g24.dd1.add("item", a);
win.g24.dd1.selection=0;
win.g24.et1.onChanging = function() {
if (this.text.match(/[^\d]/)) {
this.text = this.text.replace(/[^\d]/g, '');
win.p5= win.p1.add("panel", undefined, undefined, {borderStyle:"black"});
win.g34 =win.p5.add('group');
win.g34.spacing=0;
win.g34.orientation = 'row';
win.g34.alignment="left";
win.g34.st1 = win.g34.add('statictext',undefined,"hires");
win.g34.st1.preferredSize=[65,20];
win.g34.et1 = win.g34.add('edittext');
win.g34.et1.preferredSize=[50,20];
win.g34.st2 = win.g34.add('statictext',undefined,"px");
win.g34.et2 = win.g34.add('edittext');
win.g34.et2.preferredSize=[100,20];
win.g34.et2.visible=false;
win.g34.st3 = win.g34.add('statictext',undefined,"Quality");
win.g34.st3.preferredSize=[60,20];
win.g34.dd1 = win.g34.add('dropdownlist');
for(var a =1;a<101;a++){
win.g34.dd1.add("item", a);
win.g34.dd1.selection=0;
win.g34.et1.onChanging = function() {
if (this.text.match(/[^\d]/)) {
this.text = this.text.replace(/[^\d]/g, '');
try{
if(Prefs.exists){
win.g14.et1.text =Number(Sticky.Size1);
win.g24.et1.text =Number(Sticky.Size2);
win.g34.et1.text =Number(Sticky.Size3);
win.g14.dd1.selection = Number(Sticky.Qual1);
win.g24.dd1.selection = Number(Sticky.Qual2);
win.g34.dd1.selection = Number(Sticky.Qual3);
}catch(e){}
win.g150 =win.p1.add('group');
win.g150.spacing=10;
win.g150.orientation = 'row';
win.g150.alignment="top";
win.g150.bu1 = win.g150.add('button',undefined,"Process");
win.g150.bu1.preferredSize=[200,20];
win.g150.bu2 = win.g150.add('button',undefined,"Cancel");
win.g150.bu2.preferredSize=[200,20];
win.g150.bu1.onClick = function(){
if(win.g11.et1.text == '') {
alert("No Folder Name Has Been Entered!");
return;
if(win.g14.et1.text == ''){
alert("Thumb 1 Size Has Not Been Entered!");
return;
if(win.g24.et1.text == ''){
alert("Thumb 2 Size Has Not Been Entered!");
return;
if(win.g34.et1.text == ''){
alert("Thumb 3 Size Has Not Been Entered!");
return;
Sticky.Size1= Number(win.g14.et1.text);
Sticky.Size2= Number(win.g24.et1.text);
Sticky.Size3= Number(win.g34.et1.text);
Sticky.Qual1= parseInt(win.g14.dd1.selection.index);
Sticky.Qual2= parseInt(win.g24.dd1.selection.index);
Sticky.Qual3= parseInt(win.g34.dd1.selection.index);
if(Prefs.exists) Prefs.remove();
Prefs.open("w", "TEXT", "????");
Prefs.write(Sticky.toSource());
Prefs.close();
win.close(1);
processPics();
win.show();
function processPics(){
var Path =app.document.presentationPath;
var thumbs = app.document.getSelection("psd, jpg, png, tif, gif");
if(!thumbs.length) return;
var TopLevelFolder = Folder(Path +"/"+ win.g11.et1.text);
var Thumbnails = Folder(TopLevelFolder +"/Thumnails");
var Images = Folder(TopLevelFolder +"/Images");
var Hires = Folder(TopLevelFolder +"/Hires");
if(!TopLevelFolder.exists) TopLevelFolder.create();
if(!Thumbnails.exists) Thumbnails.create();
if(!Images.exists) Images.create();
if(!Hires.exists) Hires.create();
for(var i in thumbs){
if(!thumbs[i].spec instanceof File) continue;
var thumb = thumbs[i];
var md = thumbs[i].synchronousMetadata;
md.namespace = "http://ns.adobe.com/tiff/1.0/";
var orientation = md.Orientation.replace(/(\w+)(\s+)(.)(\d+)(.)/,"$3$4");
if(orientation == 'Normal') orientation =0;
var bm = new BitmapData(thumbs[i].spec);
var maxSize = Math.max(bm.height,bm.width);
var minSize =Math.min(parseInt(win.g14.et1.text),maxSize);
if(minSize < maxSize) bm = bm.resize(minSize,BitmapData.bicubicSharper);
bm = bm.rotate(orientation);
var bm2 = new BitmapData(thumbs[i].spec);
minSize2 =Math.min(parseInt(win.g24.et1.text),maxSize);
if(minSize2 < maxSize) bm2 = bm2.resize(minSize2,BitmapData.bicubicSharper);
bm2 = bm2.rotate(orientation);
var bm3 = new BitmapData(thumbs[i].spec);
minSize3 =Math.min(parseInt(win.g34.et1.text),maxSize);
if(minSize3 < maxSize) bm3 = bm3.resize(minSize3,BitmapData.bicubicSharper);
bm3 = bm3.rotate(orientation);
var parts = thumbs[i].name.match(/(.*)\.([^\.]+)/);
bm.exportTo(new File(Thumbnails +"/"+ parts[1] +".jpg"),parseInt(win.g14.dd1.selection.index)+1);
bm2.exportTo(new File(Images +"/"+ parts[1] +".jpg"),parseInt(win.g24.dd1.selection.index)+1);
bm3.exportTo(new File(Hires +"/"+ parts[1] +".jpg"),parseInt(win.g34.dd1.selection.index)+1);
allDone();
function allDone(){
var win = new Window( 'dialog', 'All Done' );
g = win.graphics;
var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);
g.backgroundColor = myBrush;
win.alignChildren="column";
win.g10 = win.add('group');
win.g10.orientation = "column";
win.title = win.g10.add('statictext',undefined,'Thats All Folks');
win.title.alignment="bottom";
var g = win.title.graphics;
g.font = ScriptUI.newFont("Georgia","BOLDITALIC",60);
win.g10.add('button',undefined,'Ok');
win.center();
win.show()
Maybe you are looking for
-
How can I duplicate a control in a subVI using the reference?
Here's what I want to do. I have a tree control in my main application. I add and delete items dynamically based on user input. If I pass my tree reference to a subVI, I can add, subtract and reorder the items in the tree and the changes are shown on
-
i am unable to sync my ipad 4th generation with iTunes. I get a message saying I do not have enough privileges for this operation
-
Jump distance is too large and cannot be generated.
In smartforms the error "Jump distance is too large and cannot be generated" is displayed . The detailed error desciption is : A jump distance is too large and cannot be generated. A control structure or a routine with "CHECK" or "EXIT" contains too
-
How can I make invoice when down payment is bigger than item value ?
Dear all, please, I need make invoice with bigger down payment than the item value. How can I make invoice when down payment clearing value is bigger than the item value ? When I do Release To Accounting, I have got a massage: "Total of down payment
-
Trying to get a Excel generation program to work with Office 2010 - and I have issues with Active X nodes - see attachment. I have read similar posts, but not sure how to solve this issue. Thanks Attachments: Broken Excel.JPG 120 KB