RetouchPRO

Go Back   RetouchPRO > Tools > Software > Photoshop Scripting
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Photoshop Scripting Learning and sharing for all platforms

VbScript vs. Visual Basic

Reply
 
Thread Tools
  #1  
Old 10-28-2003, 02:28 AM
Doug Nelson's Avatar
Doug Nelson Doug Nelson is offline
Janitor
 
Join Date: Aug 2001
Posts: 7,068
Blog Entries: 21
VbScript vs. Visual Basic

I was reading the Photoshop scripting guide today (slow day) and noticed that it never mentions VbScript, even though it's a scripting guide. It only talks about Visual Basic.

Does VbScript even exist anymore? Is it the same thing as Visual Basic nowadays? Did .Net swallow it all up along with VBA?
Reply With Quote top
  #2  
Old 10-28-2003, 07:49 PM
Richard_Lynch's Avatar
Richard_Lynch Richard_Lynch is offline
Senior Member
 
Join Date: Oct 2001
Location: Western NY
Posts: 1,105
I use VB to write scripts for processing some simple word events on the PC. It exists alright.

if we are looking at the same CS docs, there is a bunch of stuff in the dedicated doc for VB, but it is more-or-less a listing of codes.

the doc I found most helpful was the JS doc. Also, as I tend to learn this way, I liked looking at the samples provided by adobe.

I've used JS to program in an interface -- regretfully i am having a little problem getting buttons to behave...

Did I answer the wrong question?
Reply With Quote top
  #3  
Old 10-28-2003, 09:19 PM
Doug Nelson's Avatar
Doug Nelson Doug Nelson is offline
Janitor
 
Join Date: Aug 2001
Posts: 7,068
Blog Entries: 21
You got me digging a little deeper, and I found the section on differences between Visual Basic and VbScript.

Javascript makes the most pragmatic sense, since scripts can then be shared between OSs, but it's also the most opaque.
Reply With Quote top
  #4  
Old 10-28-2003, 09:53 PM
Richard_Lynch's Avatar
Richard_Lynch Richard_Lynch is offline
Senior Member
 
Join Date: Oct 2001
Location: Western NY
Posts: 1,105
You can still do some pretty cool stuff with java...even if you can't go outside PS. There are a lot of interface enhancements possible...not immediately apparent, perhaps, in how they work. But like the old filter factory, you can actually build new components (and then record an action and assign an F key to open them up). You'll see one in a day or two.

I succeeded in opening the can of worms, and now i'll have to make some interface components to simplify working with tools by another design.

javaScript can call a VB or AS behavior. i haven't been digging there, but it would seem a good fit to most problems as you'd only have to build the VB and AS components in the spots where they are needed to look outside PS.

but what about extracting XML? i see nothing documented on metadata (or almost as little).

Sorry to fail the distinction between VbScript and VB. I was assuming them to be fairly similar beasts.
Reply With Quote top
  #5  
Old 10-28-2003, 10:00 PM
Doug Nelson's Avatar
Doug Nelson Doug Nelson is offline
Janitor
 
Join Date: Aug 2001
Posts: 7,068
Blog Entries: 21
Go to the MS VbScript homepage and read the part about launching scripts from HTML, then ponder on PScs's new HTML help authoring feature.

Seems to me there's some big potential there.
Reply With Quote top
  #6  
Old 10-29-2003, 04:39 AM
Richard_Lynch's Avatar
Richard_Lynch Richard_Lynch is offline
Senior Member
 
Join Date: Oct 2001
Location: Western NY
Posts: 1,105
That sounds pretty interesting. I am also wondering about how those menus are stuck together, and if there might not be a way to build an interface for a tutorial rather than jumping out to a browser. Might be the wrong way to go, but could also be an interesting direction for keeping the users in one program, rather than jaunting about...
Reply With Quote top
  #7  
Old 10-29-2003, 05:18 AM
Doug Nelson's Avatar
Doug Nelson Doug Nelson is offline
Janitor
 
Join Date: Aug 2001
Posts: 7,068
Blog Entries: 21
Of course, on the JS front, I downloaded Russel Brown's sample CS script from the Expert Center. It demonstrates CS's new JS UI builder. There's also a movie, but it's 15 meg, and only demonstrates the script, not how he wrote it.

The new UI is cool, but you still have to write everything in a text editor, even building the interface.

I just installed Visual Basic, and it already knew all the Photoshop methods and commands!
Reply With Quote top
  #8  
Old 10-29-2003, 07:14 AM
Richard_Lynch's Avatar
Richard_Lynch Richard_Lynch is offline
Senior Member
 
Join Date: Oct 2001
Location: Western NY
Posts: 1,105
But your VB won't translate to mac...and I tend to think not only for my good, but for transferring on platforms. if I can write in JS, I can make it work at home (Mac) and at work (PC). There may be other ramifications for Elements...Though I've yet to try that out.
Reply With Quote top
  #9  
Old 05-01-2011, 06:47 PM
basicbob basicbob is offline
Junior Member
 
Join Date: May 2011
Posts: 1
Re: VbScript vs. Visual Basic

I have both VB 2008 Express and CS5 on my computer. How do I make use of the CS type library showing objects and methods? Can't seem to find these from VB.

Thanks
Bob
Reply With Quote top
Reply

  RetouchPRO > Tools > Software > Photoshop Scripting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sheri's Sketch - HELP NEEDED! tonyt Software 7 06-28-2007 05:22 AM
Very basic newbie problem with actions Canna W Software 22 10-17-2006 03:27 AM
visual depiction of the PS blending modes gestalt Software 1 03-05-2005 04:50 PM
save as tif in vbscript? sgwilly Photoshop Scripting 3 06-02-2004 05:03 PM
basic help in adjusting for skin tones micah Photo Retouching 13 12-09-2003 11:10 AM


All times are GMT -6. The time now is 08:28 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved