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.
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") -
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? -
Enabling rights is canceling scripting - help please!
After some frustrating time I finally was able to get scripting to work on this last part of my form. I wanted a radio button (stand alone) and a text box. If the radio button was clicked, then the text box was no longer required. If the radio button was not clicked then the text box was required in order to submit.
Here is the coding I am using (all java script):
In the exit line of the PhotoOnlyEngraving field is:
Engraving.validate.nullTest = "disabled";
In the presubmit line of the Engraving field is:
if (PhotoOnlyEngraving.rawValue == null || PhotoOnlyEngraving.rawValue == "")
{Engraving.validate.nullTest = "disabled";
else
(Engraving.rawValue == null || Engraving.rawValue == "") { {
app.alert("Please include details required for Engraving");
xfa.host.setFocus("Engraving");
Works great (accept the alert message) until you enable rights with the form. Then it ignores the script and forces you to add text in the engraving field when you have already clicked the PhotoOnly field. This is the only item that seems to be disabled in all the java script.
Any help with this would be great! I'm really stuck trying to finish a form that is now 4 days past due.
Thanks!
Lezlithx
-
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 -
Magic Trackpad help, please
this is kinda driving me buggy, so I thought I'd turn to here for help. I have a Magic trackpad and although it generally works fine, it loses the connection pretty easily. I move it 3 inches to the left or right and ...."connection lost". It seemed to work better with regular batteries, rather than the rechargeables that are in there now..but not a lot better. I thought Bluetooth was supposed to work up to 10 feet or so with no problem....
any help appreciated--I was told that an external BT dongle would help me, but I haven't been able to find one that's Mac compatible, at least not yet
so thanks for any help
John BYou are trying to send and receive radio signals from inside a grounded metal can. Try these:
http://eshop.macsales.com/Search/Search.cfm?Ntk=Primary&Ns=P_Popularity%7c1&Ne=8 050&N=4294958279&Ntt=bluetooth -
CALC SCRIPT - HELP PLEASE!!! URGENT
I am trying to write a Calc Script for the Outline below -
AP_Related
Trade_AP +
2200 + (Alias – A/P Trade related Party)
2210 + (Alias – A/P Trade I/P)
2215 +
AP_Corporate +
2240 + (Alias – Brazil Fees)
2250 + (Alias – Corporate Chargebacks)
2260 + (Alias – Service Fees)
2270 + (Alias – Fusion Fees)
2280 + (Alias – Tech Fees)
AP_Corp_IP + (UDA – Input_Accs)
I want to put the values in 2240 and 2250 into AP_Corporate and the values of 2260,2270 and 2280 into 2210.
I am trying to add the code to the existing code.
/*Fix on members to copy Actual data to Forecast - */
FIX(&ActMonthEnd,&ForecastYear,"Final",@RELATIVE("Product Groups",0),@RELATIVE("Departments",0),
@RELATIVE("ICP",0),@RELATIVE("TOT_USG",0),@RELATIVE("Accounts",0))
"Actual"(
@CALCMODE(bottomup);
IF(@ISUDA("Accounts","INPUT_ACCS"))
"Basic"->"Forecast"->&ForecastYear=@SUM(@REMOVE(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0),
@REMOVE(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0),
@UDA("Accounts","SUMMED_ACCS"))))-@CURRMBR("Accounts");
IF(@ISMBR("Tot_I/P_Mat_Costs_Roll Prod_INP"))
"Basic"->"Forecast"->&ForecastYear->"Tot_I/P_Mat_Costs_Roll Prod_INP"=#Missing;
ENDIF
IF(@ISMBR("Metal_Costs_3rd_Party_INP"))
"Basic"->"Forecast"->&ForecastYear->"Metal_Costs_3rd_Party_INP"=#Missing;
ENDIF
ELSEIF(@ISMBR("Oth_Exp_Misc_Inp"))
"Basic"->"Forecast"->&ForecastYear->"Oth_Exp_Misc_Inp"="40110100"+"40079000"-"30100200";
ELSEIF(@ISMBR("TOT_ALLOW_INP"))
"Basic"->"Forecast"->&ForecastYear->"TOT_ALLOW_INP"="12005000"+"12005100";
Edited by: user11300497 on Jun 24, 2009 12:00 PMThanks for the response,but the Original script I sent is based on UDA's.I am sending the script and the modified Outline with the UDA's.Any help is greatly appreciated.
The members are from Account dimension.
AP_Related
Trade_AP +
2200 + (Alias – A/P Trade related Party)
2210 + (Alias – A/P Trade I/P)
2215 +
AP_Corporate +
2240 + (Alias – Brazil Fees) (UDA's:Summed_ACS)
2250 + (Alias – Corporate Chargebacks)(UDA's:Summed_ACS)
2260 + (Alias – Service Fees)(UDA's:Summed_ACS)
2270 + (Alias – Fusion Fees)(UDA's:Summed_ACS)
2280 + (Alias – Tech Fees)(UDA's:Summed_ACS)
AP_Corp_IP + (UDA – Input_Accs)
/* Purpose to copy a single month of actuals to the working forecast replacing a month of forecast.
Run monthly to update the current Forecast */
/* Assumptions.
The substitution variables for
ActMonthEnd = Is set to the month containing the Actuals to be copied.
ActualYear = Is set to the year containing the Actuals to be copied.
ForecastYear = Is set to the Current Forecast year value.
ForecastVersion = Is set to the appropiate archive Forecast version.
All input accounts have a UDA of "INPUT_ACCS" and not the UDA "SUMMED_ACCS"
A parent has only one account with the "INPUT_ACCS" UDA amoung its children
All siblings of the "INPUT_ACCS" member that are to be summed into the input account have a UDA of "SUMMED_ACCS"
FIX("LC")
FIX(&ActMonthEnd,&ForecastYear,"Basic",@IDESCENDANTS ("TOT_USG"),
@REMOVE (@IDESCENDANTS("Accounts"),
@LIST(
"30000000",@SHARE("30000000"),
"30003300",@SHARE("30003300"),
"30020400",@SHARE("30020400"),
"30020500",@SHARE("30020500"),
"30010200",@SHARE("30010200"),
"30010400",@SHARE("30010400"),
"41002200",@SHARE("41002200"),
"41002300",@SHARE("41002300"),
"74001000",@SHARE("74001000"),
"41000100",@SHARE("41000100"),
"41001400",@SHARE("41001400"),
"53000000",@SHARE("53000000"),
"59000000",@SHARE("59000000"),
"IP_Ship",@SHARE("IP_Ship"),
"IP Tolling Ship",@SHARE("IP Tolling Ship"),
"IP_NonAlum_Ship",@SHARE("IP_NonAlum_Ship"),
"3rd_Party_Ship",@SHARE("3rd_Party_Ship"),
"3rd party Tolling Ship",@SHARE("3rd party Tolling Ship"),
"Margin - Full",@SHARE("Margin - Full"),
"Margin - Tolling",@SHARE("Margin - Tolling"),
"Discounts - Full - Value",@SHARE("Discounts - Full - Value"),
"Discounts - Tolling - Value",@SHARE("Discounts - Tolling - Value"),
"Base Metal Freight / Logistics - USD",@SHARE("Base Metal Freight / Logistics - USD"),
"Flash Operating EBITDA",@SHARE("Flash Operating EBITDA"),
"Flash Total Book Inventory",@SHARE("Flash Total Book Inventory"),
"BMC / Tonne",@SHARE("BMC / Tonne"),
"IP BMC / Tonne",@SHARE("IP BMC / Tonne"),
"BMC_CPL",@SHARE("BMC_CPL"),
"BMC_Cur",@SHARE("BMC_Cur"),
"BMC_M0",@SHARE("BMC_M0"),
"BMC_M1",@SHARE("BMC_M1"),
"BMC_M2",@SHARE("BMC_M2"),
"BMC_M3",@SHARE("BMC_M3"),
"BMC_PQ",@SHARE("BMC_PQ"),
"CPL Adjustment",@SHARE("CPL Adjustment")
CLEARDATA "Forecast";
ENDFIX
/* copy in Actual Currency Rates for proper monthly converison
FIX(&ActMonthEnd,&ForecastYear,"EOMRATE","Product_None","Dept_None","ICP_None",
"Entity_None","Rate_EUR_USD","Rate_INR_USD","Rate_GBP_USD","Rate_KRW_USD","Rate_BRL_USD",
"Rate_CHF_USD","Rate_CAD_USD","Rate_MYR_USD","Rate_SEK_USD")
DATACOPY "Actual"->"Final" TO "Forecast"->"Basic";
ENDFIX
/*Fix on members to copy Actual data to Forecast - */
FIX(&ActMonthEnd,&ForecastYear,"Final",@RELATIVE("Product Groups",0),@RELATIVE("Departments",0),
@RELATIVE("ICP",0),@RELATIVE("TOT_USG",0),@RELATIVE("Accounts",0))
"Actual"(
@CALCMODE(bottomup);
IF(@ISUDA("Accounts","INPUT_ACCS"))
"Basic"->"Forecast"->&ForecastYear=@SUM(@REMOVE(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0),
@REMOVE(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0),
@UDA("Accounts","SUMMED_ACCS"))))-@CURRMBR("Accounts");
IF(@ISMBR("Tot_I/P_Mat_Costs_Roll Prod_INP"))
"Basic"->"Forecast"->&ForecastYear->"Tot_I/P_Mat_Costs_Roll Prod_INP"=#Missing;
ENDIF
IF(@ISMBR("Metal_Costs_3rd_Party_INP"))
"Basic"->"Forecast"->&ForecastYear->"Metal_Costs_3rd_Party_INP"=#Missing;
ENDIF
ELSEIF(@ISMBR("Oth_Exp_Misc_Inp"))
"Basic"->"Forecast"->&ForecastYear->"Oth_Exp_Misc_Inp"="40110100"+"40079000"-"30100200";
ELSEIF(@ISMBR("TOT_ALLOW_INP"))
"Basic"->"Forecast"->&ForecastYear->"TOT_ALLOW_INP"="12005000"+"12005100";
ELSEIF(@ISMBR("Int_Exp_Third_Oth_INP"))
"Basic"->"Forecast"->&ForecastYear->"Int_Exp_Third_Oth_INP"="40071200"+"40071300"+"40075530"+"40075540"+"40075550"+"40075570"+"40075580"+"40075590"+"40075610"-"30063200";
ELSEIF(@ISMBR("Realized_Der_Metal_Inp"))
"Basic"->"Forecast"->&ForecastYear=@sum(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0))-@CURRMBR("Accounts")-
(2*("30121240"));
ELSEIF(@ISMBR("Unrealized_Der_Metal_Inp"))
"Basic"->"Forecast"->&ForecastYear=@sum(@RELATIVE(@PARENT(@CURRMBR("Accounts")),0))-@CURRMBR("Accounts")-
(2*("30131240"));
ELSEIF(@ISMBR("TOT_EMP_INP"))
"Basic"->"Forecast"->&ForecastYear=@SUM(@UDA("Accounts","EMP_ACCS")); -
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 -
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. -
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); -
CS5 slideshow java script help please
My slide show only plays thru once and I would like to have it run more than once..also I have only 8 images and would like to increase this... can someone lend a hand please.. here is the script, it was developed out of dreamweaver suite 8 but now I am in CS5:
<script type="text/JavaScript">
<!--
function MM_timelinePlay(tmLnName, myID) { //v1.2
//Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Macromedia, Inc. All rights reserved.
var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false ;
if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
tmLn = document.MM_Time[tmLnName];
if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
if (myID == tmLn.ID) { //if Im newest
setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
fNew = ++tmLn.curFrame;
for (i=0; i<tmLn.length; i++) {
sprite = tmLn[i];
if (sprite.charAt(0) == 's') {
if (sprite.obj) {
numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
keyFrm=1;
for (j=0; j<sprite.values.length; j++) {
props = sprite.values[j];
if (numKeyFr != props.length) {
if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
else sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
} else {
while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
else sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
} else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
if (fNew > tmLn.lastFrame) tmLn.ID = 0;
function MM_initTimelines() { //v4.0
//MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
var ns = navigator.appName == "Netscape";
var ns4 = (ns && parseInt(navigator.appVersion) == 4);
var ns5 = (ns && parseInt(navigator.appVersion) > 4);
var macIE5 = (navigator.platform ? (navigator.platform == "MacPPC") : false) && (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4);
document.MM_Time = new Array(1);
document.MM_Time[0] = new Array(1);
document.MM_Time["myhat1"] = document.MM_Time[0];
document.MM_Time[0].MM_Name = "myhat1";
document.MM_Time[0].fps = 3;
document.MM_Time[0][0] = new String("sprite");
document.MM_Time[0][0].slot = 1;
if (ns4)
document.MM_Time[0][0].obj = document["Image1"];
else if (ns5)
document.MM_Time[0][0].obj = document.getElementById("Image1");
else
document.MM_Time[0][0].obj = document["Image1"];
document.MM_Time[0][0].keyFrames = new Array(1, 17, 34, 54, 73, 92, 111, 130);
document.MM_Time[0][0].values = new Array(1);
document.MM_Time[0][0].values[0] = new Array("../Images/slideshow/1.jpg","../Images/slideshow/2.jpg","../Images/slides how/3.jpg","../Images/slideshow/4.jpg","../Images/slideshow/5.jpg","../Images/sl ideshow/6.jpg","../Images/slideshow/7.jpg","../Images/slideshow/8.jpg");
document.MM_Time[0][0].values[0].prop = "src";
document.MM_Time[0].lastFrame = 130;
for (i=0; i<document.MM_Time.length; i++) {
document.MM_Time[i].ID = null;
document.MM_Time[i].curFrame = 0;
document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
//-->
</script>gayathri_bna wrote:
Im in a hurry. As a suggestion...find someone locally and pay them to fix your computer.
This site is for programming java not for fixing computers. -
Pleasewrite an AppleScript for the following scenario: You need to ping the address10.32.8.151 every 5 seconds and report to the current logged in user via adialog box and email a set address when the IP has failed to respond to morethen 6 pings or 30 seconds. Upon failure of the 6 ping test please have thescript run a trace route and export it to a file named tracereport.txt on~/Desktop
This sounds remarkably like a homework assignment to me...
I'm guessing something like this covers most of your points.
property theAddress : "10.32.8.151"
global missedPings
on run
set missedPings to 0 -- initialize the counter
end run
on idle
try
do shell script "/sbin/ping -c 1 -t 1 " & theAddress
on error
set missedPings to missedPings + 1
if missedPings = 6 then
networkDown()
tell me to quit
end if
end try
return 5
end idle
on networkDown()
do shell script "/usr/sbin/traceroute " & theAddress & " &> " & quoted form of POSIX path of ((path to desktop as text) & "tracereport.txt") & " &"
do shell script "/bin/echo 'Network missed 6 pings' | /usr/bin/mail -s 'Network down' [email protected]"
display alert "Oops. Network failure" giving up after 5
end networkDown -
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
Maybe you are looking for
-
Red line with Magic Bullet Looks
Magic Bullet Looks in the Video Effects panel shows as a 32 GPU accelerated effect. However, when I add it to a clip in timeline one, two or three, I go from no lines (including yellow) to a red line above that clip. If it's a GPU accelerated effect
-
Why do I need more than 1 disk on a NLE system?
This question is often asked and a lot of people still think they can get away with a single disk or maybe 2 disks for a video editing system. It would be relatively easy to tell you that a SATA disk is half duplex, so traffic can go only one way at
-
Wifi at home/Broadband usage allowance
Can anyone tell me if when using a wifi device AT HOME does the usage come off your allocated broadband usage allowance?
-
Stacking quotes - need another pair of eyes
Oracle 11.2.0.1 SE-One, 64-bit Oracle Linux 5.6 x86-64 Given the following procedure, and focusing on the call to dbms_scheduler create or replace PROCEDURE dw.fix_job_timezone( p_jobschema_in IN VARCHAR2 default null) IS type sched_jobs_tbl_type
-
No Internet conectivity/clock error when installing FB4.7 (trial)
I follow these steps: Install as trial-> (License) Accept -> Sign In Required (Click Sign In) [here I get the error: "Please connect to the Internet and retry: Either your computer is offline or the clock on your computer is set incorrectly"] I've tr