Script Help please. Need to save as different filetype.
I have a script that is currently saving files as jpgs. I need it to save as a png. Would someone be able to help me with this?
var doc = app.activeDocument;
var Path = doc.path;
var Name = doc.name.replace(/\.[^\.]+$/, ''); var Suffix = "_full_l"; var saveFile = File(Path + "/" + "full_l" + ".jpg"); SaveJPEG(saveFile, 8);
function SaveJPEG(saveFile, jpegQuality){ jpgSaveOptions = new JPEGSaveOptions(); jpgSaveOptions.embedColorProfile = true; jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE; jpgSaveOptions.matte = MatteType.NONE; jpgSaveOptions.quality = jpegQuality; activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE); }
Here you are...
var doc = app.activeDocument;
var Path = doc.path;
var Name = doc.name.replace(/\.[^\.]+$/, '');
var Suffix = "_full_l";
var saveFile = File(Path + "/" + "full_l" + ".png");
SavePNG(saveFile);
function SavePNG(saveFile){
pngSaveOptions = new PNGSaveOptions();
pngSaveOptions.embedColorProfile = true;
pngSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
pngSaveOptions.matte = MatteType.NONE;
pngSaveOptions.quality = 1;
pngSaveOptions.PNG8 = false;
pngSaveOptions.transparency = true;
activeDocument.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE);
Similar Messages
-
Gallery script help, please
Gallery script help, please
Hello,
I'm new to actionscript in general, I do know a little...
I foung a gallery script, modified many things, the images
open fine, everything is working, but here's the thing:
the gallery is in 3 sections, red, blue and yellow.
I would like to know how, what, and where to put a script so
that if a "the small red image #1" is clicked, I can load any sort
of a movie on top of the "the BIG red image #1" or #2 or 3 and so
on...same goes for the blue and yellow...
If I figured things correctly on my own...the small thumbnail
images of the gallery are not buttons, that's why I can't attach a
movie (let's say) to them...but it is all written in script, using
the horizontal and vertical position of the mouse to open the large
images of the gallery...
So, I don't know how to figure things out, to attach a
specific movie to a specific thumbnail...
p.s.: I think the script that controls the gallery is in
symbol 120
I really would appreciate the help
Merry Christmas in advance to everyone
Sandra
here are all the files...
http://www.gentro.ca/sandra_test.zipThere's a great tutorial on kirupa...
click
here for link -
firefox not responding, freezes, sometimes responds after a few minutes, other times a pop-up appears asking if I want to stop script - help please
Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]]
* [[Troubleshooting plugins]]
If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
* Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
* Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") -
Is there a script to distribute table columns evenly between guides or margins? Here is the issue I am having. I have a big catalog and I need to take the price column out of every item but then i have to (shift-Drag) the table to get it to fill the space where the price column was.
Thanks in advance for any help.Hello. Thank you for your reply. I don't think i asked me question clearly so for that I apologize but I have mage an image to illustrate what I am trying to do.
1. This is that the table would look like before touching it
2. This is the table after taking out the price column which is always the last column in all of the tables
3. This is the table after evenly distributing the remaining column to fill the space where the price column was.
I have a script that does step 2, now I just need one that will do step 3 if possible? Basically I have a script that deletes the last column in every table in a document but I need one to distribute the columns after taking out the price one.
Thanks in advance for any help you can give me. -
Need scripting help to open and save 250 MSWord files
I'm clueless about programming and I have 250 Word files that need to be saved down as Word 5.1. I briefly tried to learn Word Macros, AppleScript, Automator, with no luck so far.
What's the best software to use for this and how do I do it? Is there already a script somewhere that I can download?
Thanks!I'm clueless about programming and I have 250 Word files that need to be saved down as Word 5.1. I briefly tried to learn Word Macros, AppleScript, Automator, with no luck so far.
What's the best software to use for this and how do I do it? Is there already a script somewhere that I can download?
Thanks! -
Hi I have very little experience with UCCx and even less experience with scripts and I'm having a problem with my main_cs_001.aef script. I've attached the callflow for this scipt. Basically when I manually close my call center for let's say Inclement Weather, I dial the main number and enter an 8 which prompts me for a password, which in turn allows me to make a selection based on the reason I want to close the call center. The options are as follows
1. Techn outage
2. Holidays
3. Inclement Weather
4. Emergency
0. Default Greeting
This is where the problem happens when I make choose an option in this case option 3. Callers hear what I want them to hear but I cannot reset to the default greeting the next day. So the callers still hear the Inclement Weather greeting and no calls go thru. I've looked at the script and discovered that an .xml file called aaprompt.xml holds the value of the choice made. If I edit aaprompt.xml and enter a value of 0, then callers are able to call in. How can I make it such that the value of aaprompt.xml is set back to 0 after a certain time? I was thinking a 24hr period would be a good time to have that reset. I've included the script, the flowchart, and the .xml file. Thank you in advance for any help you can provide.
jamesHi I have very little experience with UCCx and even less experience with scripts and I'm having a problem with my main_cs_001.aef script. I've attached the callflow for this scipt. Basically when I manually close my call center for let's say Inclement Weather, I dial the main number and enter an 8 which prompts me for a password, which in turn allows me to make a selection based on the reason I want to close the call center. The options are as follows
1. Techn outage
2. Holidays
3. Inclement Weather
4. Emergency
0. Default Greeting
This is where the problem happens when I make choose an option in this case option 3. Callers hear what I want them to hear but I cannot reset to the default greeting the next day. So the callers still hear the Inclement Weather greeting and no calls go thru. I've looked at the script and discovered that an .xml file called aaprompt.xml holds the value of the choice made. If I edit aaprompt.xml and enter a value of 0, then callers are able to call in. How can I make it such that the value of aaprompt.xml is set back to 0 after a certain time? I was thinking a 24hr period would be a good time to have that reset. I've included the script, the flowchart, and the .xml file. Thank you in advance for any help you can provide.
james -
Help! Need to save data from field point in excel sheet!!!
Hey colleagues,
I need help. I am writing on my diploma thesis.Main topic is to develop a visualization of a process of a process plant which is used for an internship in uni. My meain problem is that I need a vi where I can save my fieldpoint data only in special cycles. At the moment I use a vi which can only save every second in form of a while loop and a metronom. I am searching for a vi where I can choose the time between every saving step in excel. In addition to that I would like to have a boolean button where i can start/stop the saving within running process.
please help me urgently!!!
MarcoHello Marco,
the answer
for your problem is called “Software Control Timing”.
If a
desired time has elapsed, you can write data’s to a file.
The explicit
timing is the timing for your while loop, e.g. 10ms.
If a
desired time has elapsed, you get a flag from a timing-function and an
additional block of your code (e.g. a subVI) will executed.
The set
time for the timing function is settable dynamically, while your program is
running.
Find the VI
in the attachment, which will provide this functionality for you.
I hope this
VI will bring you further ahead…..
Have nice
day…
Ulrich
AE-NIC
Attachments:
SoftControlTiming.vi 41 KB -
Wmii/dash scripting help please
So heres the thing, I pretty much suck at scripting .
I get by in tiling wm's simply by observing, modifying, and eventually learning through trial and error.
So Ive been playing around with wmii lately and Ive hacked up my wmiirc to do what I want as best I can with what limited knowledge I have, but I need more.
First problem, Im trying to make wmii have custom tag titles while still using alt + 0-9 instead of using alt + t and typing the title every time.
heres what I did to achieve this
# for i in 0 1 2 3 4 5 6 7 8 9; do
# cat <<!
#Key $MODKEY-$i # Move to the numbered view
# wmiir xwrite /ctl view "$i"
#Key $MODKEY-Shift-$i # Retag selected client with the numbered tag
# wmiir xwrite /client/sel/tags "$i"
# done
Key $MODKEY-1
wmiir xwrite /ctl view "web"
Key $MODKEY-Shift-1
wmiir xwrite /client/sel/tags "web"
Key $MODKEY-2
wmiir xwrite /ctl view "ctrl"
Key $MODKEY-Shift-2
wmiir xwrite /client/sel/tags "ctrl"
Key $MODKEY-3
wmiir xwrite /ctl view "stat"
Key $MODKEY-Shift-3
wmiir xwrite /client/sel/tags "stat"
Key $MODKEY-4
wmiir xwrite /ctl view "msg"
Key $MODKEY-Shift-4
wmiir xwrite /client/sel/tags "msg"
Key $MODKEY-5
wmiir xwrite /ctl view "img"
Key $MODKEY-Shift-5
wmiir xwrite /client/sel/tags "img"
Key $MODKEY-6
wmiir xwrite /ctl view "vid"
Key $MODKEY-Shift-6
wmiir xwrite /client/sel/tags "vid"
Key $MODKEY-7
wmiir xwrite /ctl view "misc"
Key $MODKEY-Shift-7
wmiir xwrite /client/sel/tags "misc"
Key $MODKEY-8
wmiir xwrite /ctl view "misc1"
Key $MODKEY-Shift-8
wmiir xwrite /client/sel/tags "misc1"
Key $MODKEY-9
wmiir xwrite /ctl view "misc2"
Key $MODKEY-Shift-9
wmiir xwrite /client/sel/tags "misc2"
Key $MODKEY-0
wmiir xwrite /ctl view "misc3"
Key $MODKEY-Shift-0
wmiir xwrite /client/sel/tags "misc3"
Now this does work, but the problem is that now tags are listed on the tag bar alphabetically rather then numerically like I intended. Example alt + 1 (which is now web) actually ends up being the last tag in the list rather then the first because web starts with w.
I.E [crtl][msg][stat][web] instead of [web][ctrl][stat][msg] like I intended.
So I guess the question is how can I fix this so theyre listed in accordance with the key thats pressed rather then alphabetically? Is this possible in wmii?
Also I dont want to change the keys (i.e. make web 9 instead of 1 so its last on the keyboard too). I like the web=1,ctr=2l,stat=3,msg=4 layout that I chose in my config, I just dont like how theyre out of order on the bar.
Next problem, I want to autostart specific applications on specific tags and in a specific arrangement.
heres what I did to achieve this
# Autostart (this is ghetto, I know)
echo -n view ctrl | wmiir write /ctl;urxvtc -e ssh 192.168.1.55 -p 228 &
urxvtc -e ssh [email protected] -p 228 &
sleep 1.5 && urxvtc &
sleep 2 && wmiir xwrite /tag/sel/ctl send sel right &
sleep 2.5 && echo -n view stat | wmiir write /ctl;urxvtc -e vifm &
sleep 2.5 && urxvtc -e alsamixer &
sleep 3 && urxvtc -e htop &
sleep 3.5 && wmiir xwrite /tag/sel/ctl send sel left &
sleep 4 && echo -n view msg | wmiir write /ctl;pidgin &
sleep 3.5 && echo -n view web | wmiir write /ctl;wmiir xwrite /tag/sel/ctl colmode sel stack;uzbl-browser &
This also works, but it seems a bit too hackish if you ask me. It also takes a while to go through the tags and open things one at a time like this. Surely there must be a way to achieve the same results without all the sleep and manual client placement commands. Im looking for a way to open everything simultaneously and have it go directly where its supposed to.
So what would be the better way to do this?
And lastly heres the complete wmiirc for reference. If anybody has any tips or suggestions about anything please share.
#!/bin/dash -f
# Configure wmii
wmiiscript=wmiirc # For wmii.sh
. wmii.sh
# Configuration Variables
MODKEY=Mod1
UP=k
DOWN=j
LEFT=h
RIGHT=l
# Bars
noticetimeout=5
noticebar=/rbar/!notice
# Colors tuples: "<text> <background> <border>"
export WMII_NORMCOLORS='#a7a15e #262626 #3e3e3e'
export WMII_FOCUSCOLORS='#262626 #a7a15e #3e3e3e'
export WMII_BACKGROUND='#262626'
set -- $(echo $WMII_NORMCOLORS $WMII_FOCUSCOLORS)
# Font
export WMII_FONT='xft:Terminus-8'
#export WMII_FONT='-dec-terminal-bold-*-*-*-*-*-*-*-*-*-*-*'
# Terminal
export WMII_TERM="urxvtc"
# Menu history
hist="${WMII_CONFPATH%%:*}/history"
histnum=5000
# Column Rules
wmiir write /colrules <<!
/.*/ -> 58+42
# /.*/ -> 62+38 # Golden Ratio
# Tagging Rules
wmiir write /rules <<!
# Apps with system tray icons like to their main windows
# Give them permission.
#/^Pidgin:/ allow=+activate
# Float Apps
/MPlayer/ floating=on
/feh/ floating=on
/gimp/ floating=on
/^Pidgin:/ floating=on
# ROX puts all of its windows in the same group, so they open
# with the same tags. Disable grouping for ROX Filer.
#/^ROX-Filer:/ group=0
# Status Bar Info
status() {
echo -n $(uptime | sed 's/.*://; s/,//g') '|' $(date +%a' '%b' '%d' '%r)
# Generic overridable startup details
startup() { witray & }
local_events() { true;}
wi_runconf -s wmiirc_local
startup
echo $WMII_NORMCOLORS | wmiir create $noticebar
# Event processing
events() {
cat <<'!'
# Events
Event CreateTag
echo "$WMII_NORMCOLORS" "$@" | wmiir create "/lbar/$@"
Event DestroyTag
wmiir remove "/lbar/$@"
Event FocusTag
wmiir xwrite "/lbar/$@" "$WMII_FOCUSCOLORS" "$@"
Event UnfocusTag
wmiir xwrite "/lbar/$@" "$WMII_NORMCOLORS" "$@"
Event UrgentTag
shift
wmiir xwrite "/lbar/$@" "*$@"
Event NotUrgentTag
shift
wmiir xwrite "/lbar/$@" "$@"
Event LeftBarClick LeftBarDND
shift
wmiir xwrite /ctl view "$@"
Event Unresponsive
client=$1; shift
msg="The following client is not responding. What would you like to do?$wi_newline"
resp=$(wihack -transient $client \
xmessage -nearmouse -buttons Kill,Wait -print \
-fn "${WMII_FONT%%,*}" "$msg $(wmiir read /client/sel/label)")
if [ "$resp" = Kill ]; then
wmiir xwrite /client/$client/ctl slay &
fi
Event Notice
wmiir xwrite $noticebar $wi_arg
kill $xpid 2>/dev/null # Let's hope this isn't reused...
{ sleep $noticetimeout; wmiir xwrite $noticebar ' '; }&
xpid = $!
# Menus
Menu Client-3-Delete
wmiir xwrite /client/$1/ctl kill
Menu Client-3-Kill
wmiir xwrite /client/$1/ctl slay
Menu Client-3-Fullscreen
wmiir xwrite /client/$1/ctl Fullscreen on
Event ClientMouseDown
wi_fnmenu Client $2 $1 &
Menu LBar-3-Delete
tag=$1; clients=$(wmiir read "/tag/$tag/index" | awk '/[^#]/{print $2}')
for c in $clients; do
if [ "$tag" = "$(wmiir read /client/$c/tags)" ]; then
wmiir xwrite /client/$c/ctl kill
else
wmiir xwrite /client/$c/tags -$tag
fi
if [ "$tag" = "$(wi_seltag)" ]; then
newtag=$(wi_tags | awk -v't='$tag '
$1 == t { if(!l) getline l
print l
exit }
{ l = $0 }')
wmiir xwrite /ctl view $newtag
fi
done
Event LeftBarMouseDown
wi_fnmenu LBar "$@" &
# Actions
Action showkeys
echo "$KeysHelp" | xmessage -file - -fn ${WMII_FONT%%,*}
Action quit
wmiir xwrite /ctl quit
Action exec
wmiir xwrite /ctl exec "$@"
Action rehash
wi_proglist $PATH >$progsfile
Action status
set +xv
if wmiir remove /rbar/status 2>/dev/null; then
sleep 2
fi
echo "$WMII_NORMCOLORS" | wmiir create /rbar/status
while status | wmiir write /rbar/status; do
sleep 1
done
# Key Bindings
KeyGroup Moving around
Key $MODKEY-$LEFT # Select the client to the left
wmiir xwrite /tag/sel/ctl select left
Key $MODKEY-$RIGHT # Select the client to the right
wmiir xwrite /tag/sel/ctl select right
Key $MODKEY-$UP # Select the client above
wmiir xwrite /tag/sel/ctl select up
Key $MODKEY-$DOWN # Select the client below
wmiir xwrite /tag/sel/ctl select down
Key $MODKEY-space # Toggle between floating and managed layers
wmiir xwrite /tag/sel/ctl select toggle
KeyGroup Moving through stacks
Key $MODKEY-Control-$UP # Select the stack above
wmiir xwrite /tag/sel/ctl select up stack
Key $MODKEY-Control-$DOWN # Select the stack below
wmiir xwrite /tag/sel/ctl select down stack
KeyGroup Moving clients around
Key $MODKEY-Shift-$LEFT # Move selected client to the left
wmiir xwrite /tag/sel/ctl send sel left
Key $MODKEY-Shift-$RIGHT # Move selected client to the right
wmiir xwrite /tag/sel/ctl send sel right
Key $MODKEY-Shift-$UP # Move selected client up
wmiir xwrite /tag/sel/ctl send sel up
Key $MODKEY-Shift-$DOWN # Move selected client down
wmiir xwrite /tag/sel/ctl send sel down
Key $MODKEY-Shift-space # Toggle selected client between floating and managed layers
wmiir xwrite /tag/sel/ctl send sel toggle
KeyGroup Client actions
Key $MODKEY-f # Toggle selected client's fullsceen state
wmiir xwrite /client/sel/ctl Fullscreen toggle
Key $MODKEY-Shift-c # Close client
wmiir xwrite /client/sel/ctl kill
KeyGroup Changing column modes
Key $MODKEY-d # Set column to default mode
wmiir xwrite /tag/sel/ctl colmode sel default-max
Key $MODKEY-s # Set column to stack mode
wmiir xwrite /tag/sel/ctl colmode sel stack-max
Key $MODKEY-m # Set column to max mode
wmiir xwrite /tag/sel/ctl colmode sel stack+max
KeyGroup Running programs
Key $MODKEY-a # Open wmii actions menu
action $(wi_actions | wimenu -h "${hist}.actions" -n $histnum) &
Key $MODKEY-p # Open program menu
eval wmiir setsid "$(wimenu -h "${hist}.progs" -n $histnum <$progsfile)" &
Key $MODKEY-Return # Launch a terminal
eval wmiir setsid $WMII_TERM &
KeyGroup Other
Key $MODKEY-Control-t # Toggle all other key bindings
case $(wmiir read /keys | wc -l | tr -d ' \t\n') in
0|1)
echo -n "$Keys" | wmiir write /keys
wmiir xwrite /ctl grabmod $MODKEY;;
wmiir xwrite /keys $MODKEY-Control-t
wmiir xwrite /ctl grabmod Mod3;;
esac
KeyGroup Tag actions
Key $MODKEY-t # Change to another tag
wmiir xwrite /ctl view $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
Key $MODKEY-Shift-t # Retag the selected client
# Assumes left-to-right order of evaluation
wmiir xwrite /client/$(wi_selclient)/tags $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
# for i in 0 1 2 3 4 5 6 7 8 9; do
# cat <<!
#Key $MODKEY-$i # Move to the numbered view
# wmiir xwrite /ctl view "$i"
#Key $MODKEY-Shift-$i # Retag selected client with the numbered tag
# wmiir xwrite /client/sel/tags "$i"
# done
Key $MODKEY-1
wmiir xwrite /ctl view "web"
Key $MODKEY-Shift-1
wmiir xwrite /client/sel/tags "web"
Key $MODKEY-2
wmiir xwrite /ctl view "ctrl"
Key $MODKEY-Shift-2
wmiir xwrite /client/sel/tags "ctrl"
Key $MODKEY-3
wmiir xwrite /ctl view "stat"
Key $MODKEY-Shift-3
wmiir xwrite /client/sel/tags "stat"
Key $MODKEY-4
wmiir xwrite /ctl view "msg"
Key $MODKEY-Shift-4
wmiir xwrite /client/sel/tags "msg"
Key $MODKEY-5
wmiir xwrite /ctl view "img"
Key $MODKEY-Shift-5
wmiir xwrite /client/sel/tags "img"
Key $MODKEY-6
wmiir xwrite /ctl view "vid"
Key $MODKEY-Shift-6
wmiir xwrite /client/sel/tags "vid"
Key $MODKEY-7
wmiir xwrite /ctl view "misc"
Key $MODKEY-Shift-7
wmiir xwrite /client/sel/tags "misc"
Key $MODKEY-8
wmiir xwrite /ctl view "misc1"
Key $MODKEY-Shift-8
wmiir xwrite /client/sel/tags "misc1"
Key $MODKEY-9
wmiir xwrite /ctl view "misc2"
Key $MODKEY-Shift-9
wmiir xwrite /client/sel/tags "misc2"
Key $MODKEY-0
wmiir xwrite /ctl view "misc3"
Key $MODKEY-Shift-0
wmiir xwrite /client/sel/tags "misc3"
wi_events events local_events
# WM Configuration
wmiir write /ctl <<!
font $WMII_FONT
focuscolors $WMII_FOCUSCOLORS
normcolors $WMII_NORMCOLORS
grabmod $MODKEY
border 1
# Misc
progsfile="$(wmiir namespace)/.proglist"
action status &
wi_proglist $PATH >$progsfile &
wmiir xwrite /ctl "colmode default"
xsetroot -solid "$WMII_BACKGROUND" &
# Autostart (this is ghetto, i know)
echo -n view ctrl | wmiir write /ctl;urxvtc -e ssh 192.168.1.55 -p 228 &
urxvtc -e ssh [email protected] -p 228 &
sleep 1.5 && urxvtc &
sleep 2 && wmiir xwrite /tag/sel/ctl send sel right &
sleep 2.5 && echo -n view stat | wmiir write /ctl;urxvtc -e vifm &
sleep 2.5 && urxvtc -e alsamixer &
sleep 3 && urxvtc -e htop &
sleep 3.5 && wmiir xwrite /tag/sel/ctl send sel left &
sleep 4 && echo -n view msg | wmiir write /ctl;pidgin &
sleep 3.5 && echo -n view web | wmiir write /ctl;wmiir xwrite /tag/sel/ctl colmode sel stack;uzbl-browser &
# Setup Tag Bar
IFS="$wi_newline"
wmiir rm $(wmiir ls -p /lbar) >/dev/null
seltag=$(wmiir read /tag/sel/ctl | sed 1q)
unset IFS
wi_tags | while read tag
do
if [ "$tag" = "$seltag" ]; then
echo "$WMII_FOCUSCOLORS" "$tag"
else
echo "$WMII_NORMCOLORS" "$tag"
fi | wmiir create "/lbar/$tag"
done
wi_eventloop
Also I should mention this is wmii-hg. I like hg better then 3.9 because in 3.9 the columns are all screwed up.
I.E I like fixed column sizes where the right column is always smaller then the left no matter which side you move the client to. (difficult to explain)
Last edited by tjwoosta (2010-07-01 03:23:06)Mike,
You were close. Split returns an array, not a string.
// form1.page1.subform1.foo::exit - (JavaScript, client)
var wordCnt = new Array();
var str = this.rawValue;
wordCnt = str.split(" ");
xfa.host.messageBox("There are " + wordCnt.length + " words.");
Steve -
Help Please: Need To Create Temporary Table
Hi Guys,
I am a new Oracle user. I need to create this report that uses
temporary table. I can't use "create" statment in the sql
query. Now wihtout that I don't know how to create the
temporary table. Please let me know if anyone has any
suggestions.
Thanks a billion
SamHi Sam,
yes, you can't apply neither Data Definition Language (DDL) nor
Data Manipulation Language (DML), except SELECT statement, at
the query builder inside your report. You may create a stored
procedure containing the DDL or the DML, then run this stored
procedure at the "Before Report" trigger. You can find this
trigger under Report Triggers of your Object Navigator.
hope this help you.
have a nice day...
daniel -
need an asp script that could send the sentence "lights ON" to an ip address x.x.x.x
Najib-
Cisco Support Forums are centered around assistance with the products and technologies that we support. We kindly request that the information within these threads are relevant to our products and services to keep the forums clean and easy to search.
That said -
There is quite a bit more to your question than you may realize. Scripting engines utilize different methods to communicate with external resources (i.e. PHP can make socket call vs. making ASP making full HTTP request) What you would use depends largely on how the recieving device needs to recieve information and what your scripting language can send. As far as I know, ASP is limited to HTTP requests.
I would go poking around on goole for socket open/close/sending or HTTP reqeust/response if your end device supports it. Don't forget with fsock to make sure your outbound data is correctly formatted for what the recieving device understands (use urlencode, etc so the character set is correct.)
HTTP example:
http://arstechnica.com/civis/viewtopic.php?f=20&t=884487
HTTP information:
http://msdn.microsoft.com/en-us/library/5t9y35bd(vs.71).aspx
Regards,
Chris -
I'm going to give this one more try. I have been trying to get the script below to work to have a check box make a text field visable and hidden when it's checked and unchecked.
if (checkbox.rawValue==1)
textbox.presence="visable"
else
textbox.presence="hidden"
I get errors "missing ) after condition
1: at line 2"
I really need some help, if someone could give me hand. ThanksTry this in the 'MouseUp' event for your checkbox:
if (event.target.value=="Off") {
this.getField("textbox.presence").display = display.hidden
} else {
this.getField("textbox.presence").display = display.visible -
EEM / Tcl Script Help Please
Hello Community,
I have been evaluating a Tcl Script posted here sometime ago, designed to help monitor track interfaces and routes, see attached.
I believe I have applied the configurations correctly, however when I test the script by shutting down interfaces nothing happens.
I'm sure its something very simple that I'm missing.
I wonder if someone could take a look at the configs and let me know what I'm doing wrong. I have also attached a diagram.
Cheers
CarltonJoseph,
I did read again and I got it to work :-)
Cheers
On a slightly different topic, is it possible to 'track' a static ip address?
For example, I have the following tracking configured:
track 1 ip route 0.0.0.0 0.0.0.0 reachability
track 2 interface FastEthernet0/0 ip routing
track 3 interface FastEthernet0/1 ip routing
track 4 ip route 180.80.8.4 255.255.255.255 reachability
track 5 ip route 170.70.7.4 255.255.255.255 reachability
R3#show track brie
Track Object Parameter Value
1 ip route 0.0.0.0/0 reachability Up (static)
2 interface FastEthernet0/0 ip routing Up
3 interface FastEthernet0/1 ip routing Up
4 ip route 180.80.8.4/32 reachability Down (no route)
5 ip route 170.70.7.4/32 reachability Down (no route)
However, you will see that track 4 and 5 are down. This is because, although I can ping 180.80.8.4 and 170.70.7.4 the actual ip addresses don't appear in the routing table:
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
170.70.0.0/24 is subnetted, 1 subnets
C 170.70.7.0 is directly connected, FastEthernet0/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, FastEthernet1/0
180.80.0.0/24 is subnetted, 1 subnets
C 180.80.8.0 is directly connected, FastEthernet0/1
150.50.0.0/24 is subnetted, 1 subnets
C 150.50.5.0 is directly connected, Ethernet2/0
S* 0.0.0.0/0 is directly connected, FastEthernet1/0
R3#
Therefore, is there way of creating a track for /32 ip addresses?
I hope that makes sense.
Cheers -
Auto refresh with apple script- help please
can any one help me please
i use multiple windows in safari at one time and can any one help me to refresh these pages (two windows) automatically using apple script.
also if I click manually to refresh these pages i get the following note"
"To open this page again, Safari must resend the form you completed to open the page the first time. This may cause the website to repeat actions it took the first time you sent the form."
and i have click send for this to happen
any help from you all will be appreciated as this will help me a lot with the present work that i am doingNot sure about the "automatic" reload - Opera allows you to set a refresh time interval for each tab, but not Safari. Also, Safari Extender gives you a single click contextual menu option to "reload all tabs".
here is an AppleScript for a one-page auto reload. You might be able to alter the script to auto reload all open tabs.
Not sure about the "warning" message. Can you post a URL so I can have a look? -
Simple focus magic script help please
Dipping my toes for the first time - more code to learn - brain hurting.
I've recorded a very simple script to run a basic sharpening step in focus magic before creating web galleries. It works except it asks for a decision in focus magic which is a pain running 40-70 pictures through (200 in show jump season).
the desired aim is each photo to be "out of focus" sharpening at 1 pixel @ 100% and what I have is as follows. I think there may be a yes/no return step I want rid of and I'm hoping sorting this out will be a good first step in learning. Thanks for any help
REM =======================================================
DIM objApp
SET objApp = CreateObject("Photoshop.Application")
REM Use dialog mode 3 for show no dialogs
DIM dialogMode
dialogMode = 3
DIM idOpn
idOpn = objApp.CharIDToTypeID( "Opn " )
DIM desc1
SET desc1 = CreateObject( "Photoshop.ActionDescriptor" )
DIM idnull
idnull = objApp.CharIDToTypeID( "null" )
Call desc1.PutPath( idnull, "C:\\APRESSbox\\ExRaw2process\\0812GlensEX\\MagstoGO\\0812GlentoranWEB\\WK08008DS Glentoran.JPG" )
Call objApp.ExecuteAction( idOpn, desc1, dialogMode )
REM =======================================================
DIM objApp
SET objApp = CreateObject("Photoshop.Application")
REM Use dialog mode 3 for show no dialogs
DIM dialogMode
dialogMode = 3
DIM idFltr
idFltr = objApp.CharIDToTypeID( "Fltr" )
DIM desc2
SET desc2 = CreateObject( "Photoshop.ActionDescriptor" )
DIM idUsng
idUsng = objApp.CharIDToTypeID( "Usng" )
Call desc2.PutString( idUsng, "Fix Out-of-focus Blur" )
Call objApp.ExecuteAction( idFltr, desc2, dialogMode )
REM =======================================================
DIM objApp
SET objApp = CreateObject("Photoshop.Application")
REM Use dialog mode 3 for show no dialogs
DIM dialogMode
dialogMode = 3
DIM idCls
idCls = objApp.CharIDToTypeID( "Cls " )
DIM desc3
SET desc3 = CreateObject( "Photoshop.ActionDescriptor" )
DIM idSvng
idSvng = objApp.CharIDToTypeID( "Svng" )
DIM idYsN
idYsN = objApp.CharIDToTypeID( "YsN " )
DIM idN
idN = objApp.CharIDToTypeID( "N " )
Call desc3.PutEnumerated( idSvng, idYsN, idN )
Call objApp.ExecuteAction( idCls, desc3, dialogMode )The open and close steps you should be able to do using the DOM and not have to use scriptlistener.
For the filter You might want to see if it can be recorded and played back as an action. If so then just calling that action would be an easy way to run the filter. If it can be recorded you may be able ( at least with javascript ) to make the executeAction call with dialogMode set to all and assign the results to a variable. That variable with contain an Action Descriptor. With most filters the setting you used in the filter dialog will be in that descriptor. You just need to pull the descriptor apart to find what the setting are. Or( again using javascript ) xtools has a script that will convert an action into javascript. It is mostly action manager( scriptlistener ) so you should be able to translate the output to VBS. -
I am trying to figure out the proper verbage for this. If I
want to have a button gotoAndPlay "home" but then immediately
after, without stopping, gotoAndPlay something else, What is the
code for that?
I.E.:
on (press) {
gotoAndPlay ("home");
[what do I put in next to make it go play something else
without pausing?]
Text
TextYou need to see that task with different eyes, as soon as the
script reaches the gotoandplay line, the playhead will jump
instantly to that location and you need to write the next jump on
that home frame.
Why don't you rather set a variable saying where it should go
after home like:
on(press){
gotoAndPlay("home");
var nextGoTo = xxx;
and on your home frame you have an case statement runnning
checking which variable you activated so it will jump directly to
it.
If you don't undestand what I mean with it, you can send me
the fla file and I will show you how to create it.
Maybe you are looking for
-
Have problem with recording to MINID
I have Audigy 2 platinum pro. when I try open minidisc program (send music to my minidisc frow optical cabel) the computer shuts dow with the writing that there is problems. and tahts ir allmoust all time. Thanks Povilas
-
Can I import my favorites from Lunascape?
Before I switched to Firefox, I was using Lunascape. I am wondering if there is any way for me to import my favorites list from there to Firefox. I was able to import my favorites from Internet Explorer, however, I'd also like to transfer my favorite
-
Computer crashed, reloaded CS5, says serial number not for qualifying product
Loaded CS5 on new computer successfully. loaded updates successfully. Trying to load CS5 on 2nd computer (old computer with new Windows 7 installation) and after it loads and I try to install updates... the updates fail to load and I get the followi
-
How do I crop an image to print
Please help. I have a horizontal image in lightroom that Im trying to upload to Shutterfly. When I upload it to Shutterfly, it crops some of the people out of it. I've tried everything to adjust the size in LR but it still keeps cropping the image. I
-
Wrong dest.storage type (921 / TRANSFER) is chosen when picking of OBD
Hi Folks, I am configuring a new warehouse. while testing of the same i came across below issue. wrong dest.storage type and dynamic storage bin (921 / TRANSFER instead of 916 / OBD No.) is chosen when picking of Outbound Delivery. What may be the re