Simple JS script needed
I'm looking for someone to help me create a simple piece of javascript. In a nutshell, I am saving a document as SVG and want the resulting file to have interactive buttons that show and hide layers or objects. The only instruction Adobe provides is to use an event.js file (which only seems to be included with much older versions of Illustrator.) So, I'd like to commission someone to replicate some basic functions that the events.js file was used for.
Email me at user852 at gmail dot com
I try too to find out where was located this piece of script, and I must admint that there is no much information about it. There are some samples on the web (from Adobe) that contained it, but no way to get, download, find it in a direct maner.
In an other hand, I tried some exemple, but they didn't seams to work at all... so here are some links that was a first got :
sample from Adobe
svg zone
since your last post did you get more info about it... I still investigate on it...
Similar Messages
-
I work with InDesign doing text layout. I have used scripts, but have never had the time to learn JavaScript. I need what I assume is a fairly simple script. The script needs to do the following:
1. Open a document.
2. Ignore the missing font dialog box.
3. Load all text style from another file, with the styles from that file overwriting the styles in the current document.
4. Save the open document with the same name.
The script needs to be able to batch process all of the document in a folder.
If this is simple enough to do with several lines of code, I would appreciate it if someone could help me out. If it is more complex than that, I can possibly pay.Hi kwilson68, could you contact me by email? I might be able to help you out.
-
Simple bash scripting help needed..
I want to learn som simple bash scripting in order to automate various tasks.. Im totally noob, so bear with me
First of all I would like to set configs without using nano.. is there a simple command for this? For example if i want change my hostname in /etc/rc.conf.. how can i print the current vallue and how can i change it`?
i was thinking something like this to get the current value:
# cat /etc/rc.conf | grep HOSTNAME=
which returns HOSTNAME="myhostname"
how can i change this value with one or more commands whitout touching the rest of the file?abesto wrote:
A slightly naive solution:
CHOICE="lisa"
NAMES="homer marge lisa bart maggie"
if [ "`echo \" $NAMES \" | grep \" $CHOICE \"`" ]; then
echo "this is how you do it"
fi
The extra spaces inside the escaped quotes are to ensure that only a whole word is "matched".
You can also replace the elif's with a loop through a list of "the other variables". Then you'd use the loop variable instead of $CHOICE above.
grep can check on word-bounderies with \< and \>, or with the -w switch. The -q switch suppresses any messages and exits with exit-code 0 when the first match is found:
if echo "${NAMES}" | grep -qw "${CHOICE}"; then
Nice and readable, should work, but i haven't tested it
EDIT:
Procyon wrote:CHOICE="lisa"
NAMES="homer marge lisa bart maggie"
if [[ $NAMES =~ $CHOICE ]]; then echo match; fi
This one also matches elisa, ie. no check on word bounderies. You should be carefull with that
Last edited by klixon (2009-04-23 09:40:22) -
Simple button script not working
I am using AS2 and need help figuring out why this simple button script is not working:
stop();
buttonWS1.onRelease = function(){
gotoAndStop("Stage1and2_Boss",4);
buttonWS2.onRelease = function(){
nextFrame();
//end
My buttons are the square letter-puzzles below. They are images that I converted to "symbols" (specifically, buttons). I put their names as above (buttonWS1, buttonWS2, etc.) in the "instance names" boxes.
I have no idea what is going on. Please help!Hi -
1. Yes, buttonWS2 is the instance name
2. The only code attached to it is the code I pasted above.
3. onRelease does not execute because my trace statement does not appear in the output
Here is the modified code for buttonWS2:
buttonWS2.onRelease = function(){
trace("clicked!");
nextFrame();
Question: It shouldn't matter if I have commented-out code within that set of codes should it?:
buttonWS2.onRelease = function(){
//if (puzzleschosenarray[0] == 2 || puzzleschosenarray[1] == 2) {
// cannot be chosen -- make button non-functional
//else{
//puzzleschosenarray[roundnumber-1] = 2;
trace("clicked!");
nextFrame(); -
SIMPLE login script install of zfd4 agent?
Is there is simpler way of installing the zfd4 agent via a login script when
I'm not using an intermediate tier or use the application explorer. The
login script examples I've found onlnie (and information in the Novell docs
and Novel Press books) seem complex and frought with pitfalls...
Thanks,
KB> I'm reviewing this TID; I may be able to do this on my own. However, if
> anyone has an example, working "simple" login script they could post as
an
> example, it would be REALLY appreciated....
>
> Thanks!
> KB
> "KB" <[email protected]> wrote in message
> news:mHgfg.738$[email protected]..
> > Forgot to mention - I want to run this in silent mode, and need to
handle
> > the issue where someone already has the agent installed...
> >
> > Thanks,
> > KB
> >
> > "KB" <[email protected]> wrote in message
> > news:Dfgfg.703$[email protected]..
> >> Is there is simpler way of installing the zfd4 agent via a login
script
> >> when I'm not using an intermediate tier or use the application
explorer.
> >> The login script examples I've found onlnie (and information in the
> >> Novell docs and Novel Press books) seem complex and frought with
> >> pitfalls...
> >>
> >> Thanks,
> >> KB
> >>
> >
> >
>
>
Hi,
your Login Script must be seen like this:
#z:exist c:\programme\novell\zenworks\nalwin32.exe
if "%ERRORLEVEL"="0" THEN GOTO NOTHING
#z:\zfdagent\agent.bat
NOTHING:
END
the agent.bat is a batch File to install the agent in silent mode
it looks like that:
msiexec /i z:\zfdagent\zfdagent.msi /qn ADDLOCAL=ALL EDITABLE_MT_ADDRESS=1
STARTUP_APPWINDOW=1 STARTUP_APPEXPLORER=0 REBOOT=ReallySuppress /l*v %
WINDIR%\zfdagent.log
the z:\zfdagent is a subdirectory in the sys:\system\Public where
zfdagent.msi file exists.
hier is a link to download exist.exe
Download: http://www.novell.com/coolsolutions/...oads/exist.zip
Best regards
Issam -
Hey
Im looking for a simple AppleScript i can run on client workstations , The Script ideally needs to do the following ..
- Find any files in the User's Home folder with a Creation date older than 3 years ago.
- Display the files and allow user to delete.
Im sure this is quite simple for someone who knows what there doing with AppleScript ! , anyone have any simple scripts they could suggest ?
CheersWell, getting a list of files is one thing (there are several shell utilities), getting them in a Finder window so you can do various things with them is another. There isn't much AppleScript support for the Finder's Find…, and saved searches don't appear to be portable. GUI scripting is more akin to voodoo, but I figured I would give it a shot to see if I could get close.
The following script pastes the appropriate search term in the Search item in a Finder window's toolbar. Getting the search to start in a specific place is a bit goofy, but if you have navigated to the desired folder, running the script should start the search from there:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #FFDDFF;
overflow: auto;"
title="this text can be pasted into the Script Editor">
-- enter a search term in the Finder's search toolbar item
-- set the search date
tell ((current date) as «class isot» as string)
(get text 1 thru 4) - 3 -- the current year - 3
set SearchDate to text 6 thru 7 & "/" & text 9 thru 10 & "/" & result
end tell
-- make sure there is a Finder window and the toolbar is showing
tell application "Finder"
activate
if (get windows) is {} then set target of (make new Finder window) to path to home folder
if not toolbar visible of front window then set toolbar visible of front window to true
end tell
-- enter the search term into the search text field, if present
tell application "System Events"
if UI elements enabled then
get value of attribute "AXRoleDescription" of text field 1 of group 1 of tool bar of front window of application process "Finder"
if (result as text) is "search text field" then -- toolbar search item exists
set value of text field 1 of group 1 of tool bar of front window of application process "Finder" to "created:<=" & SearchDate
else -- oops
activate
display dialog "This script needs to use the Search item on the toolbar - please customize the Finder toolbar to include Search." with title "Find by creation date" buttons {"OK"} default button 1
end if
else
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.universalaccess"
display dialog "This script needs UI element scripting enabled. Check \"Enable access for assistive devices\" and try again." with title "Find by creation date" buttons {"OK"} default button 1
end tell
end if
end tell
</pre>
HTH -
Illustrator scripter needed to write a simple script regarding layers in AI.
If you are interested, please contact me at [email protected]hi all,
this is my first time to this forum , I need your help friends .I want to apply background color to pageitem using javascriping
(widows os). How can I do this?
Please send the mail regarding to this to [email protected] or [email protected]
Thanks in advance
Dhananjay Patil -
Help with simple Automator script
I have a simple Automator script for updating a specified folder with files from another folder. It consists of only two actions:
1. Get Folder Contents (from the folder I drop on the Automator executable).
2. Copy Finder Items.
I left the option "replace existing files" unchecked because there's no point in replacing a bunch of files that already exist (we're talking about 4000-5000 files in the source folder). I assumed that meant to ignore any existing files but, on the contrary, I found out that the script is copying duplicates of all the existing files -- making my target folder about 9000 files strong!
How do I get a command into the middle of this script to restrict the Copy Finder Items command to files that do not already exist in the target folder? (It would be even nicer if it could check for files that are older than the files being copied and actually replace (only) those as well.)
Any ideas?If you need the Terminal window to stay open, then you're looking at scripting Terminal. You can do this with Automator's run applescript action, or you can just use Script Editor (in Applications > AppleScript). Either way you will need to save the workflow/script as an application and drag it to your Login Items (in System Preferences > Accounts).
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "Terminal"
activate
set commands to "cd /Users/lenny/ventrilo/
/Users/lenny/ventrilo/ventrilo_srv"
do script commands in front window
end tell</pre>
PowerMac G5 (June 2004) 2x1.8GHz 1.25GB, PowerBook G4 (12-inch DVI) 1x1GHz 768MB Mac OS X (10.4.3) -
Solaris 11 - run a simple BASH script on computer startup
I need to have a simple BASH script run on my Solaris 11 machine automatically whenever the computer (re)starts. It should be run with root permissions and after the computer has fully booted. What is the easiest way to do that?
Thank you
DusanHi user9368043
Yes, that should be right, and be intended this way.
See /etc/rc3.d/README and the following part from smf(5):
Legacy Startup Scripts
Startup programs in the /etc/rc?.d directories are executed
as part of the corresponding run-level milestone:
/etc/rcS.d milestone/single-user:default
/etc/rc2.d milestone/multi-user:default
/etc/rc3.d milestone/multi-user-server:default
Your question concerning upgrading to Solaris 11.1:
In the Gnome menus, you should look for (and start)
System --> Administration --> Update Manager
Let it do its work. It will give you a new boot environment, containing Solaris 11.1. Possibly, you have to perform upgrading twice. With "beadm activate", see beadm(1M), you can go back to Solaris 11.0 whenever you want.
"Local" parts of your zfs root pool, like /usr/local, home directories, /root, and so on, should be in separated file systems, and be mounted outside the root pool before upgrading. They are availlable then from any boot environment, and will not be duplicated. See more in zfs(1M), zpool(1M).
I strongly recommend upgrading. Solaris 11.1 is great. -
Hi,
I need a simple TCL script, that picks up the phone, plays a greeting message and then does DID further in without caller intervention. Currently I have 2811 with a BRI, the local telco sends only the last two digits that are a direct match to the extensions of the IP phones and I do DID.
I analyzed b-acd-aa script, that is shipped with the CME, but in fact I do not need such a complex state machine with digit collection, hunt groups, etc.
(http://www.cisco.com/en/US/docs/voice_ip_comm/cucme/bacd/configuration/guide/cme40tcl.html)
I believe I need something like:
application
service foo flash:foo.tcl
param welcome-prompt foo.au
dial-peer voice 10 pots
service foo
port 0/2/0
incoming called [0-1].
direct-inward-dial
Please advise wether to build a new TCL script, or to try to provide all the necessary parameters to the existing scripts and try to make them work for what I need (e.g. drop-through, etc.)
Any comments are welcome!
Zzzz.You can use b-acd/aa in drop-through mode.
if you are interested in acquirinf a num2name script that does it and much more, you can contact me at the address present in my profile. -
Not being a regular user of terminal on OSX, I have managed to forget how to run a simple shell script. The purpose of the script is to rename a set of files contained in a specific directory. Here is a sample of the script I wrote some time back:
mv product_22.jpg 080688614423.jpg
This command repeats for each file I need to rename. My recollection is that I simply put the actual script text file in the same directory as the images to be renamed and drag the script file into a new terminal window and hit enter to run. When I try this however I receive the following error:
ord2: Permission denied
Can anyone help me out here? I'm running 10.2.8. I seem to beforgetting a critical step somewhere along the way.
Thanks
Mac OS X (10.2.x)Have you set the execution bit for the script? When not, use: chmod 755 script.
-
I need a recommendation for a PHP calendar script. It should
have both a
large display for use on a single page as well as a small one
for use in
a sidebar, like on a home page. The script needs to be able
to handle
links from within an event and must be easy for a user to
update.
And finally, it must integrate easily into an existing
design.
Any ideas?
Thanks,
Harvey WassermanYou're welcome!
eclipsme wrote:
> Thanks, MD
>
> Harvey
>
> Mad Dog wrote:
>> If you want to be able to change the PHP files, then
this is a
>> problem. If you don't need to mess with them (and I
don't know why
>> you would when there are plenty of variables and CSS
you can mess
>> with the make the changes) then there's nothing to
worry about.
>> Installation is a breeze as long as you have Zend
Optimizer or
>> IonCube on the server. MD
>>
>>
>> "eclipsme" <[email protected]> wrote in message
>> news:ga8a3l$1o0$[email protected]..
>>> Thanks for the reference. Yes, this looks
interesting, but I don't
>>> like that that the script is encoded. For
instance, this line
>>> bothers me: "DON'T GIVE UP! Installation of
encoded files can be tough.
>>> If you
>>> haven't already, try the Auto-installer."
>>>
>>> Harvey
>>>
>>> Mad Dog wrote:
>>>> www.easyPHPCalendar.com
>>>>
>>>> I've used it on several sites including
integrating it into a
>>>> Wordpress-run site.
>>>>
>>>> Mad Dog
>>>>
>>>>
>>>> eclipsme wrote:
>>>>> I need a recommendation for a PHP
calendar script. It should have
>>>>> both a large display for use on a single
page as well as a small
>>>>> one for use in a sidebar, like on a home
page. The script needs
>>>>> to be able to handle links from within
an event and must be easy
>>>>> for a user to update.
>>>>> And finally, it must integrate easily
into an existing design.
>>>>>
>>>>> Any ideas?
>>>>>
>>>>> Thanks,
>>>>> Harvey Wasserman -
Tidy -- simple python script to clean annoying files and directories
Hi all,
recently I opened a much-used flash drive and there was a lot of files like Thumbs.db, Mac OS' ._*, .DS_Store, etc all over it, making using it really annoying.
So I decided to mimic a simple utility I saw as a plugin in Rockbox, which takes all of these files and deletes them.
The result is a simple python script which you can find at:
http://github.com/houbysoft/short/blob/master/tidy
Usage should be self-explanatory. Be warned, by default, it deletes everything that matches the regular expressions without warning (this should be fine though, so if you want to be safe, try the -s and -v (simulate, verbose) or -p (prompt) options first.
As usual, any feedback is welcome, and if you know of other files it should clean, please post them here!Hi all,
recently I opened a much-used flash drive and there was a lot of files like Thumbs.db, Mac OS' ._*, .DS_Store, etc all over it, making using it really annoying.
So I decided to mimic a simple utility I saw as a plugin in Rockbox, which takes all of these files and deletes them.
The result is a simple python script which you can find at:
http://github.com/houbysoft/short/blob/master/tidy
Usage should be self-explanatory. Be warned, by default, it deletes everything that matches the regular expressions without warning (this should be fine though, so if you want to be safe, try the -s and -v (simulate, verbose) or -p (prompt) options first.
As usual, any feedback is welcome, and if you know of other files it should clean, please post them here! -
I have a simple task I need to accomplish and I could use a simple GREP command to do it except I have yet to figure out what that is. Here's what I have:
a paragraph break a number (1, 2, or more digits) and a paragraph break again. I find this easily with the Find command: \r\d+\r
I need to replace the paragraph breaks with a single spaces and place brakets in front of and behind the digits found without changing the digits found. If I use the $0 in the change string it leaves it all the same including the digit or if I use [$0] in the change field it puts teh brakets in but leaves the paragraph breaks. I'm sure there's something simple I'm missing here, but I have not yet figured out what it is. Can someone please help?The parentheses break the expression into subparts of found text. In this case (paragraph break)(numbers)(paragraph break). You only want to keep the numbers part, so you use the $ notation to tell ID which subpart to keep. $0 is ALL of the found text, $1 is the first group enclosed by parentheses, $2 the second (your numbers), and so on. By choosing $2 you save the numbers, but throw away anything that was found in the first and following subparts.
-
Simple Resizing Script - Hopefully better eyes will prevail
I'm working on a simple resizing script to incrementally resize an image in 5% steps up to the set limits as defined by the variables; newImageHeight & newImageWidth. I'm currently running this script in Photoshop CS4 on an Intel Mac.
The script works fine for horizontal format images but vertical images scale incrementally in significantly larger steps than 5% and the final output is well above the limit set by the variable "newImageHeight".
I'm sure it's something simple that I've just overlooked. Any help would be most appreciated.
TIA
#target photoshop
// Sets Adobe Photoshop to use pixels and display no dialogs.
app.preferences.rulerUnits = Units.PIXELS;
var doc = app.activeDocument;
var imageFormat;
var newImageHeight = 4000; // Sets the new image height to 4000 pixels.
var newImageWidth = 2880; // Sets the new image width to 2880 pixels.
if (doc.height.value > doc.width.value){ // Determines whether the image is vertical or horizontal in format.
imageFormat = 1;
}else{
imageFormat = 2;
if (imageFormat == 1) {
alert("Re-Scale Portrait Format");
while (doc.height.value < (newImageHeight * 0.923550372529964)){
alert(doc.height.value);
doc.resizeImage (doc.height * 1.05), ResampleMethod.BICUBIC;
alert(doc.height.value);
doc.resizeImage (doc.height * (1 / (doc.height / newImageHeight))), ResampleMethod.BICUBIC;
}else{
alert("Re-Scale Landscape Format");
while (doc.width.value < (newImageWidth * 0.923550372529964)){
alert(doc.width.value);
doc.resizeImage (doc.width * 1.05), ResampleMethod.BICUBIC;
alert(doc.width.value);
doc.resizeImage (doc.width * (1 / (doc.width.value / newImageWidth))), ResampleMethod.BICUBIC;
// EOFCheck resizeImage out the Object Model Viewer in ESTK.
Document.resizeImage (width: UnitValue , height: UnitValue , resolution: number , resampleMethod: ResampleMethod )
So I think the line
doc.resizeImage (doc.height * 1.05), ResampleMethod.BICUBIC;
should rather be
doc.resizeImage (doc.width * 1.05, undefined, undefined, ResampleMethod.BICUBIC);
or
doc.resizeImage (undefined, doc.height * 1.05, undefined, ResampleMethod.BICUBIC);
What is the Script supposed to achieve anyway?
It’s not based on the obsolete concept of incremental resizing for better results, is it?
Maybe you are looking for
-
Using Mac OS 10.8.5 why won't DiskImage from Utilities mount in order to open a .dmg file?
-
IPad and Itunes Issue..please help
Hi- i suddenly found yesterday that none of my apps in IPAD are working. And Itunes from my laptop disappeared. i tried to reinstall but it gives an error message of invalid E:\ drive. What could be the issue.Secondly is it possible that without sync
-
Time machine - Easiest way to restore information???
Hey there, Fairly new to Mac but getting there slowly but surely. Managed to succesfully backup my MacBook Pro information (Applications, data, etc etc.) into and External HD previously formatted for Mac. In case something bad happen to my MBP (kknoc
-
My laptop wont't recoginse the charger, we have tried taking the battery out and holding the power for 30 seconds and then putting the charger back in technique. How do I fix this?
-
Sorting a vector of pairs in Solaris Studio 12.4 beta July refresh
The following C++ program doesn't compile in C++11 mode with the Solaris Studio 12.4 beta July refresh compiler: #include <algorithm> #include <string> #include <utility> #include <vector> int main(int, char **) std::vector<std::pair<int, std::st