Help with Applescript: very basic functions
Hi guys, my first post. I'd very much like to switch from Excel to Numbers but not until I find an Applescript replacement for my stuff.
I wrote basic Excel Applescript just fine but I'm tearing my hair out just to perform simple scripts in Numbers!!!
Basically I need to do:
PART 1: Import External Data
- I think I got this covered, using a GUI copy script via the "System Events" application
- but since you guys are the experts: how do I make this process 'invisible'? i.e. each time the script runs, a Safari window appears. I don't want that to happen.
tell application "Safari"
activate
open location "http://www.whatever.htm"
end tell
tell application "System Events"
tell process "Safari"
keystroke "a" using command down
keystroke "c" using command down
end tell
end tell
PART 2: Paste It Into Numbers
- How hard can it be, right? Apparently I have the mental IQ of Gump I need Numbers to:
- clear data from an existing pre-defined/named table
- paste the data (from clipboard) onto this table (paste starting on cell A1), using the "Paste and Match Style" function
- hide certain columns <-- I realize if Numbers paste onto a table with hidden columns, it treats them as non-existent i.e. won't paste the same. Therefore I suppose before the paste script I'd need an unhide script
... and that's it!!
Help please I really hate Excel but can't move on till I figure this out... it's crucial to my livelihood.
Thank you all in advance!
There is no paste function in the Numbers AppleScript's dictionary.
We may mimic it as I did during one year and a half with Numbers '08.
Go to my iDisk:
<http://idisk.me.com/koenigyvan-Public?view=web>
open the folder "For_iWork:iWork '08:for_Numbers:"
and download one of the items whose name starts with "paste".
This use of GUI scripting is interesting because it creates automatically rows/columns when required.
One draw back is the resulting font.
Yvan KOENIG (from FRANCE samedi 17 janvier 2009 21:12:52)
Similar Messages
-
Hi guys, i have a project to do and Ive chosen hangman. Ive already made the main program , but i need help with the GUI. I havent been taught about GUI in school, so all i know is what i could understand from a book and what ive read on the internet..
First , heres the code of my basic Hangman class:
import java.io.*;
import java.util.Random;
public class Hangman
public void maingame()throws IOException
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
String movies[]={"THE BOURNE ULTIMATUM","TRANSFORMERS","RUSH HOUR 3","THE INSIDE MAN","THE SIMPSONS MOVIE","THE LORD OF THE RINGS","DIE HARD 4.0"};
Random rand = new Random();
char current[]=(movies[rand.nextInt(movies.length)]).toCharArray(); //Convert a random string from movies array into a char array
char actual[]=new char[current.length]; //Store current state of guessed movie
for (int i=0;i<actual.length;i++)
if (isVowel(Character.toUpperCase(current))==true)
actual[i]=current[i];
else if (isSpecialChar(Character.toUpperCase(current[i]))==true)
actual[i]=current[i];
else if (current[i]==' ')
actual[i]='/';
else
actual[i]='_';
String hangman = "HANGMAN";
int turnsleft=7;
StringBuffer guessed=new StringBuffer();
while (turnsleft!=0)
System.out.println("\n\t\t\t\t"+hangman.substring(0,turnsleft)+"\n");
print(actual);
System.out.println("\nEnter your guess");
String inp = br.readLine();
if (inp.length()>1)
System.out.println("You may only enter one character");
else
char guess = inp.charAt(0); //Convert the entered string to char
if ( (hasBeenGuessed(guess,guessed)) == true )
System.out.println("You have already guessed that\nYou have "+turnsleft+" turns left");
else if (guess >= '0' && guess <= '9')
System.out.println("You cannot guess digits.All digits in a movie will will be filled in automatically");
else
guessed.append(guess);
if (isVowel(guess)!=true)
if (isCorrect(guess,turnsleft,current,actual)==true)
if (hasWon(actual,current)==true)
System.out.println();
print(actual);
System.out.println("\nCongratulations!You won!");
System.exit(0);
else
System.out.println("\nCorrect Guess!\nYou have "+turnsleft+" turns left\n");
else
turnsleft--;
System.out.println("Wrong Guess!\nYou have "+turnsleft+" turns left\n");
else if (isVowel(guess)==true)
System.out.println("You cannot guess vowels\nYou have "+turnsleft+" turns left\n");
else
System.out.println("You have already guessed that\nYou have "+turnsleft+" turns left\n");
print(actual);
if (turnsleft==0)
System.out.println("\nYou lose!\nThe movie was: ");
print(current);
System.exit(0);
private boolean isCorrect(char guess,int turnsleft,char current[],char actual[])
int flag=0;
for (int i=0;i<current.length;i++)
if ( Character.toUpperCase(current[i])==Character.toUpperCase(guess) && actual[i]!=guess ) //Check if guess is correct, and make sure it has not already been entered
actual[i]=guess;
flag=1;
else if (Character.toUpperCase(current[i])!=Character.toUpperCase(guess) && i==current.length-1 && flag==0)
return false;
if (flag!=0)
return true;
else
return false;
private boolean hasWon(char actual[],char current[])
char actualspc[]=new char[actual.length];
for (int i=0;i<actual.length;i++)
if (actual[i]=='/')
actualspc[i]=' ';
else
actualspc[i]=actual[i];
for (int i=0;i<actual.length;i++)
if ((Character.toUpperCase(current[i]))==(Character.toUpperCase(actualspc[i])) && i==actual.length-1)
return true;
else if ((Character.toUpperCase(current[i]))==(Character.toUpperCase(actualspc[i])) && i!=actual.length-1)
continue;
else
return false;
return false;
private void print(char arr[])
for (int i=0;i<arr.length;i++)
System.out.print(Character.toUpperCase(arr[i])+" ");
private boolean isVowel(char a)
if (a=='a' || a=='A' || a=='e' || a=='E' || a=='i' || a=='I' || a=='o' || a=='O' || a=='u' || a=='U')
return true;
else
return false;
private boolean isSpecialChar(char a)
//if (a>='a' && a<='z')
//return false;
//else if (a>='A' && a<='z')
//return false;
//else if (a==' ')
//return false;
//else if (a>='0' && a<='9')
//return true;
if (isLetter(a)==true)
return false;
else if (isWhiteSpace(a)==true)
return false;
else if (isDigit(a)==true)
return true;
else
return true;
private boolean hasBeenGuessed(char a,StringBuffer guessed)
for (int i=0;i<guessed.length();i++)
if ( Character.toUpperCase(guessed.charAt(i)) == Character.toUpperCase(a))
return true;
return false;
My first 2 questions are here:
a - Why does isLetter not work, it says cannot resolve symbol - method isLetter(char)... Im guessing even isDigit and isWhiteSpace wont work, so why? If i cant use them ill have to use the commented code, its kind of unprofessional..
b- Isnt there any way i can compare chars ignoring cases besides converting both to one case, like im doing now?
Heres the new HangmanGUI class i made, it doesnt necessarily have to be a different class in the final outcome, but i would prefer it if it can.. Ive made what i can figure out.. Ive commented about what i need to do.
Keep in mind i cant use Applets, only Frame/JFrame
import java.awt.*;
import javax.swing.*;
public class HangmanGUI extends JFrame implements ActionListener
Button newGame = new Button("New Game");
Button entGuess = new Button("Submit Guess");
Button giveUp = new Button("Give Up");
TextField input = new TextField("",1);
Label hangman = new Label("HANGMAN");
JPanel play = new JPanel();
JPanel hang = new Jpanel();
GridLayout playLayout = new GridLayout(2,4);
public HangmanGUI()
play.setLayout(playLayout);
play.add(hangman+"\n");
play.add(newGame);
play.add(giveUp);
play.add(input);
play.add(entGuess);
hang.add(hangman);
getContentPane().add(play);
getContentPane().add(hang);
public void ActionPerformed(ActionEvent act)
Object src = act.getSource();
if (src==newGame)
main(); //Calling main to restart program - will that work?
//if (src==entGuess)
//Need to submit the guess, while input is not empty to Hangman class
//if (src==giveUp)
//Need to go into the losing part of Hangman class
}As you can see i need help with:
a - How to complete the other ifs
b - How to really use the data of my Hangman class in this class and combine the GUI and backend to make a nice GUI Hangman app
c - btw, right now if i try to compile HangmanGUI it highlights the implements ActionListener line and says cannot resolve symbol - class ActionListener..
Any help would be greatly appreciatedThanks for the explanation pete...
Anyways, i started implementing my code within abillconsl's code, and im trying to assign a label to a char array using .toString(); but instead of whats in the char array i get [C@<numbers and digits> ..
Whats wrong?
[code]
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.Random;
public class HangEmHighGUI extends JFrame implements ActionListener
private Button newGame,
entGuess,
giveUp;
private TextField input;
private Label hangman,
movie;
private JPanel play,
hang;
private GridLayout playLayout;
private FlowLayout labelLayout;
private Container container; // To avoid extra meth calls
String movies[]={"THE/BOURNE/ULTIMATUM","TRANSFORMERS","RUSH HOUR 3","THE INSIDE MAN","THE SIMPSONS MOVIE","THE LORD OF THE RINGS","DIE HARD 4.0"};
Random rand = new Random();
char current[]=(movies[rand.nextInt(movies.length)]).toCharArray(); //Convert a random string from movies array into a char array
char actual[]=new char[current.length]; //Store current state of guessed movie
public HangEmHighGUI()
setUp();
container = this.getContentPane();
play = new JPanel();
hang = new JPanel();
playLayout = new GridLayout(1, 3, 5, 5); // rows, cols, space, space
labelLayout = new FlowLayout(FlowLayout.CENTER);
newGame = new Button("New Game");
entGuess = new Button("Submit Guess");
giveUp = new Button("Give Up");
input = new TextField("",1);
hangman = new Label("HANGMAN");
movie = new Label(actual.toString());
hang.setLayout(labelLayout);
play.setLayout(playLayout);
play.add(newGame);
play.add(giveUp);
play.add(entGuess);
hang.add(hangman);
hang.add(movie);
container.add(hang,BorderLayout.NORTH);
container.add(input,BorderLayout.CENTER);
container.add(play,BorderLayout.SOUTH);
pack();
setVisible(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
public void actionPerformed(ActionEvent act)
Object src = act.getSource();
if (src==newGame)
main(new String[] {""}); //Calling main to restart program, this does not work without parameters, is there some other way to restart?
if (src==entGuess)
if (input.getText()=="")
setUp();
//if (src==giveUp)
//Need to go into the losing part of Hangman class
public static void main(String args[])
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
new HangEmHighGUI();
private void setUp()
for (int i=0;i<actual.length;i++)
if (isVowel(Character.toUpperCase(current)))
actual[i]=current[i];
else if (isSpecialChar(Character.toUpperCase(current[i])))
actual[i]=current[i];
else if (Character.isWhitespace(current[i]))
actual[i]='/';
else
actual[i]='_';
private boolean isVowel(char a)
if (Character.toUpperCase(a)=='A' || Character.toUpperCase(a)=='E' || Character.toUpperCase(a)=='I' || Character.toUpperCase(a)=='O' || Character.toUpperCase(a)=='U')
return true;
else
return false;
private boolean isSpecialChar(char a)
if (Character.isLetter(a))
return false;
else if (Character.isDigit(a))
return true;
else if (Character.isWhitespace(a))
return false;
else
return true;
private boolean isCorrect(char guess,int turnsleft,char current[],char actual[])
int flag=0;
for (int i=0;i<current.length;i++)
if ( Character.toUpperCase(current[i])==Character.toUpperCase(guess) && actual[i]!=guess ) //Check if guess is correct, and make sure it has not already been entered
actual[i]=guess;
flag=1;
else if (Character.toUpperCase(current[i])!=Character.toUpperCase(guess) && i==current.length-1 && flag==0)
return false;
if (flag!=0)
return true;
else
return false;
private boolean hasWon(char actual[],char current[])
char actualspc[]=new char[actual.length];
for (int i=0;i<actual.length;i++)
if (actual[i]=='/')
actualspc[i]=' ';
else
actualspc[i]=actual[i];
for (int i=0;i<actual.length;i++)
if ((Character.toUpperCase(current[i]))==(Character.toUpperCase(actualspc[i])) && i==actual.length-1)
return true;
else if ((Character.toUpperCase(current[i]))==(Character.toUpperCase(actualspc[i])) && i!=actual.length-1)
continue;
else
return false;
return false;
private void print(char arr[])
for (int i=0;i<arr.length;i++)
System.out.print(Character.toUpperCase(arr[i])+" ");
private boolean hasBeenGuessed(char a,StringBuffer guessed)
for (int i=0;i<guessed.length();i++)
if ( Character.toUpperCase(guessed.charAt(i)) == Character.toUpperCase(a))
return true;
return false;
Note that the majority of the code has been taken from my old hangman class, i havent adapted it to the GUI yet, so ignore all of that stuff. -
Hi, I am embarrassed to say this but I can't figure out why this select isn't working.
SELECT single adrnr INTO w_adrnr FROM lfa1
WHERE lifnr = w_lifnr.
I know that I have a match in LFA1 where LIFNR = W_LIFNR but the select will not return anything. Can you tell me what [obvious] mistake I have made?
Regards,
DavisDavis,
did you see data at SE11 ? if so then use
Use Below FM -> pass CONVERSION_EXIT_ALPHA_INPUT
give input w_lifnr and output is w_lifnr
SELECT single adrnr INTO w_adrnr FROM lfa1
WHERE lifnr = w_lifnr.
now see the results
Thanks
Seshu -
Hoping for some help with a very frustrating issue!
I have been syncing calendar and contacts on my iPhone 5 and Outlook 2007 using iCloud 2.1.3 (my PC is running Vista). All was well until the events I entered on the phone were showing up in Outlook, but not the other way around. I’ve tried the usual recommended steps: deselecting calendar and contacts in the iCloud control panel and then re-selecting, signing out of the panel and back in, and repairing the Outlook installation in control panel. I even uninstalled iCloud on the PC and downloaded it again (same version).
The furthest I’ve gotten is step 2 (and once, step 3) of 7 while performing “Outlook Setup For iCloud.” At that point I get, “Your setup couldn’t be started because of an unexpected error.” After the first attempt at all this, all my calendar events disappeared from Outlook, although they are still in iCloud calendar and on my phone.
Sound familiar? Any ideas on how to solve this iCloud/Outlook issue? Thanks much in advance!Hoping for some help with a very frustrating issue!
I have been syncing calendar and contacts on my iPhone 5 and Outlook 2007 using iCloud 2.1.3 (my PC is running Vista). All was well until the events I entered on the phone were showing up in Outlook, but not the other way around. I’ve tried the usual recommended steps: deselecting calendar and contacts in the iCloud control panel and then re-selecting, signing out of the panel and back in, and repairing the Outlook installation in control panel. I even uninstalled iCloud on the PC and downloaded it again (same version).
The furthest I’ve gotten is step 2 (and once, step 3) of 7 while performing “Outlook Setup For iCloud.” At that point I get, “Your setup couldn’t be started because of an unexpected error.” After the first attempt at all this, all my calendar events disappeared from Outlook, although they are still in iCloud calendar and on my phone.
Sound familiar? Any ideas on how to solve this iCloud/Outlook issue? Thanks much in advance! -
Hello, I'm Bethany and I'm having trouble with my apple ID I tried to buy something from he app store and they assed me some questions and anyway i have locked my account and don't know how to unlock any help with be very helpful thanks.
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
Can someone help me with a very basic guide to animated gif with elements 11?
Hi
I bought Adobe elements 11 and have been trying to do a very basic animated gif with it.I came acroos some instructions about layering,etc but still cannot get it to work. All I want to do is add two of my school photos together so that one suddenly vanishes and the one appears.I am planning to put this on my blog.
The animation I want is the day time picture of teh school magically vanish and the night time picture appear.Can it be done with elements11(I wouldn't mind if someone can even do it for me so that I could deconstruct it later!).I have attached the two photos.Please remember ,my knowledge of phtoshop is abysmal and very very basic.My apologies for that.hence I might be need to be told like a 10-year old!
Please help as I need this fast! Karen.It’s not possible to fade between gif images but you could sandwich two layers with a black fill layer between them as I have done in this example.
Then use the menu:
File >> Save For Web
Choose gif as the file type, select animate, and set your timing in seconds with continuous loop if required.
Then Save.
PS the images are different sizes so I had to re-size the daylight image to make it the same as the night image.
Click to view -
Hi,
apologies for this being a very basic question, but I rarely
use Flash. About once a year, however, I am called upon to do some
sort of (usually very simple) Flash-based project for the students
I assist. This time it's a simple random slideshow.
The setup is this:
* I have a movieClip called 'slides_MC' containing all the
slide photos, on consecutive frames.
* This movieClip is placed inside another movieclip named
slideshowRand_MC.
This is given an instance name of topslide_mc, and faded up
and down with alpha keyframes.
The idea is that, when the slides mc is faded right down,
some Actionscript causes the slides movie to jump to, and stop
playing on a random frame, so random slides are faded up, then down
again, then swapped.
I need to apply some actionscript to particular keyframes so
that the swap is performed at the correct time.
This is my attempt at a reusable function to do the swapping.
It's placed in a keyframe on the root timeline:
// Go to and stop at random frame in slides movieclip
function goRandom(mc) {
// Number of slides in slides movieclip
var slides = 22;
// Random number between 1 and number of frames in slides
movieclip
var randFrame = Math.ceil(Math.random() * slides);
mc.goToAndStop("slide_" & randFrame);
This function is called from keyframes in slideshowRand_MC:
_root.goRandom(this.slideshow_rand_mc.topslide_mc);
I know this is really basic stuff, but can anyone tell me why
this isn't working.
I've tried adding a breakpoint in the goRandom function, but
it doesn't look like it ever gets called.
Any assistance very gratefully accepted.
AlexHi Bob, thanks for getting back to me.
quote:
Originally posted by:
Bob Pierce
"_root.goRandom(this.slideshow_rand_mc.topslide_mc);"
There's a typo in that line - if it's in your code, it won't
work!
Ah, true. The typo actually happened when I was re-writing
the code in post. The actual code in the movie is
_root.goRandom(this.topslide_mc);
This is attached to a keyframe of the container movie-clip
containing the slides MC.
I've put the fla file on our server.
slideshow_random.fla.zip
If you, or someone else could download it and help me find
out what I'm doing wrong, I'd be ever-so grateful. I'm sure it's
something really obvious. Without being very familiar with Flash
and Actionscript, it's hard to explain things, and much easier to
show you the actual Flash file.
The 2 functions are on a keyframe on frame 1 of the root
timeline. The 'goRandom' function is supposed to be called from a
keyframe in 'slideshowRand_MC'. I envisaged calling the random
pause function from another keyframe in the same movieclip.
Thanks again,
Alex -
Help with applescript to quit certain processes by name?
Hey, for anyone who knows how to program applescripts well, I could use some help with the script below.
I'm very new to applescripting and I'm trying to write a script that would automatically quit up to 100 instances of the Google Chrome Renderer process.
Thanks to google, I found a script similar to what I wanted, and after some tinkering I thought I had it just right. The thing is, if I only set the app_name to Google Chrome, it quits Chrome just fine, but when I try it like this, it doesn't receive any data from grep or awk.
If anyone can help I'd really appreciate it.
repeat 100 times
set app_name to "Google Chrome Renderer"
set the_pid to (do shell script "ps ax | grep " & (quoted form of app_name) & " | grep -v grep | awk '{print $1}'")
set new_pid to first word of the_pid
try
if new_pid is not "0" or "1" then do shell script ("kill -9 " & new_pid)
end try
end repeattry this:
tell application "System Events"
set procs to (every process whose name is "Google Chrome Renderer")
if (count of procs) > 100 then
set max to 100
else
set max to count of procs
end if
repeat with i from 1 to max
tell (item i of procs) to quit
end repeat
end tell -
Help with Applescript - filenames
Hi!
I hope there is someone who can help me. I have very little experience with Applescript, and have spent a couple of days scouring these forums amongst others without any luck...
I have a folder (titled XLS) with about 1000 excel files in it. They are numbered basen on some parametric calculations (1111.xls, 1112.xls, 1113.xls, etc). I have constructed an Automator rutine which, one at a time, can open each excel file, copy some cells and then paste the data into an empty xml-file in TextWrangler. The empty xml-file is also in the XLS folder.
What I am looking for is an applescript which can rename the open xml-file with the same filename as the xls-file. So, when 1111.xls is open, the xml-file gets renamed 1111-xml; when 1112.xls is open, the xml-file gets renamed 1112-xml, etc. Each new xlm-file is to be saved into a folder XLM, whivh is also in the XLS folder.
Thanks in advance....
RobSe below; there are two folders on the desktop; "xls" (with xls-files in) and "xml", as well as the empty Template.xml file. Here it is!:
--3 XLS to XML
tell application "Finder"
set fileList to every file of entire contents of ("YourHD:Users:You:Desktop:xls" as alias)
end tell
repeat with i from 1 to number of items in fileList
set currentFile to (item i of fileList)
tell application "Microsoft Excel"
set screen updating to false
open currentFile
activate currentFile
activate object worksheet 1
copy range range ("YourRange")
end tell
tell application "Finder"
copy file "YourHD:Users:You:Desktop:Template.xml" to folder "YourHD:Users:You:Desktop:xml"
end tell
tell application "Microsoft Excel"
set docName to name of window 1
end tell
tell application "Finder"
set docName2 to text 1 thru ((offset of "." in docName) - 1) of docName
set theFile to "YourHD:Users:You:Desktop:xml:Template.xml" as alias
set the name of theFile to docName2 & ".xml"
open file theFile
end tell
tell application "TextWrangler"
activate
paste
close text document 1 saving yes
end tell
tell application "Microsoft Excel"
activate
close active workbook saving no
end tell
end repeat
tell application "Microsoft Excel"
set screen updating to true
quit
end tell
tell application "TextWrangler"
quit
end tell -
[New] Help with a VERY simple asterisk program.
Alright...I feel like a complete idiot asking this question..but I'm having such trouble writing this program. The program description is here:
Write a Java application using two for loops to produce the following pattern of asterisks.
I guess I'm really bad at algorithms yeah? Haha...well, any help would be very much appreciated.Hi,
I don't think you don't need to look through any C programming books.
When you have a problem like this, do some thinking about what methods you need to use and what the general structure of the program will be.
You need to print asterisks out to the screen... so you'll need:
System.out.println
System.out.printAnd you already know that you need two loops.
Now you can ask yourself how you might use the print statements with two loops in order to design a basic structure for the program.
You have 8 lines, so you might want a loop that runs through 8 times, one of the lines printed each time.
Within this loop, you need another loop that prints out *'s. This loop could run once for each asterisk, but because there is a different number of asterisks on each line, the number of times this loop runs would be variable.
So a basic structure:
//loop1 that runs 8 times
//loop2 that runs once for each *
print one star
//end loop2
//end loop1The key now is to recognise the difference between print and println. I don't know if you alread know, but System.out.print will print a string without creating a new line at the end, and println will create a new line at the end of the printed string.
Hope that helps. If you have any other problems, post specific questions along with the code you've written and are having trouble with. -
Need help with trim and null function
Hi all,
I need help with a query. I use the trim function to get the first three characters of a string. How do I write my query so if a null value occurs in combination with my trim to say 'Null' in my results?
ThanksHi,
Thanks for the reply. What am I doing wrong?
SELECT trim(SUBSTR(AL1.user_data_text,1,3)),NVL
(AL1.user_data_text,'XX')
FROM Table
I want the XX to appear in the same column as the
trim.The main thing you're doing wrong is not formatting your code. The solution may become obvious if you do.
What you're saying is:
SELECT trim ( SUBSTR (AL1.user_data_text, 1, 3))
, NVL ( AL1.user_data_text, 'XX' )
FROM Tablewhich makes it clear that you're SELECTing two columns, when you only want to have one.
If you want that column to be exactly like the first column you're currently SELECTing, except that when that column is NULL you want it to be 'XX', then you have to apply NVL to that column, like this:
SELECT NVL ( trim ( SUBSTR (AL1.user_data_text, 1, 3))
, 'XX'
FROM Table -
Help with a very simple horizontal Spry menu
Hi,
I’ve always received great help here and I’m sure that if I explain the issue I’m having properly I’ll get some good input.
This is to do with a very simple horizontal Spry menu, there’s no dropdown involved, only a color change on the rollover. The menu items are in a shade of blue, then on the rollover each menu item changes to a shade of red, the font color remains white for both.
What’s mentioned above works flawlessly, the problem I’m having is this … On the rollover when the menu block items turn red, I’m attempting to add a 1px border around the entire block, but when I do the block item seems to want to change its width and height slightly when it’s rolled-over. As I said, without the border it works perfect.
Any suggestions will be appreciated.steve0308 wrote:
Hi,
I’ve always received great help here and I’m sure that if I explain the issue I’m having properly I’ll get some good input.
This is to do with a very simple horizontal Spry menu, there’s no dropdown involved, only a color change on the rollover. The menu items are in a shade of blue, then on the rollover each menu item changes to a shade of red, the font color remains white for both.
What’s mentioned above works flawlessly, the problem I’m having is this … On the rollover when the menu block items turn red, I’m attempting to add a 1px border around the entire block, but when I do the block item seems to want to change its width and height slightly when it’s rolled-over. As I said, without the border it works perfect.
Any suggestions will be appreciated.
You also have to apply the border to the 'a' css selector. If you just apply it to the 'a:hover' css selector then the tab will grow slightly bigger because its adding more width and height to the overall structure. -
Why do apple release products with so many basic functions missing? Print!
I love the iPhone and i love the iPad but why do apple always leave so many basic functions out of their devices.
The iPhone was missing a decent camera, mms, multiple sms send, multi delete otions, contacts import from sim.....and many other things.....they eventually got there.
Then they bring the iPad out which i would buy tomorrow and use for business to display my brochures, PDF's, port folio and type up quotes but there is no printing option.....whats all that about?
I wouldn't mind if there was even a decent app available for it but i'd really like an option in Pages to print a bloody page!
Why do apple do this? I have a Canon ip100 that i have been using for wireless printing with my IBM Thinkpad to type up quotes and print brochures on the move........if I buy an iPad i can no longer do this. It's like stepping back 5 years!
Can anyone shed any light on why apple would produce such a product without the ability to print properly. It's so frustrating!Your obviously a huge apple fan and going to defend it's lack of functionality. A print function is not going to effect battery life, nor decrease hard drive space. If it was intended purely as a toy then why include software to write documents and create spreadsheets. I don't know many people who create spreadsheets for fun.
What about people wanting to print photo's. 'There's an app for that'
I personally think it's a huge oversight and a major disappointment for the iPad. If it is capable of it why not include it.
I agree. I think a camera is a ridiculous thing to have on the iPad.....but you should be able to connect a camera o it and upload photo's.
If apple hadn't left so many features off of the original iphone i would probably just accept that this is what apple intended the product to be used for and tough luck if it doesn't do what i want it to. But Apple left so many simple features off of the iphone it was ridiculous. They revolutionised the mobile phone but at the same time took it back 5 years in functionality. No MMS, No multi delete, no multi sms recipients.........etc.
For a company so keen on selling top notch products to as many people as possible it seems crazy not to have a print function. Loads of businesses would use this if it had. I'm not the only one that thinks it's crazy not having a print function....just do a google search and there are thousands more asking the same thing.
Adding a print function could probably sell a couple of million more units.
It is a computer by the way....it runs an OS system. It has programs......it's just not a fully functional computer!
Apparently Stove Jobs has said via an email that printing will come.......if it;s going to come then why wasn't it here to start with!
Message was edited by: ChrisRianPhillips
Message was edited by: ChrisRianPhillips -
Can someone tell me the problem with this (very basic) code
I know it's very basic but here goes
public class MilesAndFurlongs
// the constructor
public MilesAndFurlongs (int Furlongs, int Miles)
amountFurlongs = Furlongs;
amountMiles = Miles;
// method to add one to furlong
public void increment()
amount = (amount + 1);
// method to print out total number of furlongs and miles
public void displayLength()
system.out.println("Furlongs: " + amountFurlongs);
system.out.println("Miles: " + amountMiles);
bluej says theres an illegal start of expression in displaylength()
i know its going to be something stupid :Dthis is all of it updated...
public class MilesAndFurlongs
// the constructor
public MilesAndFurlongs (int Furlongs, int Miles)
amountFurlongs = Furlongs;
amountMiles = Miles;
// method to add one to furlong
public void increment()
amount = (amount + 1);
// method to print out total number of furlongs and miles
public void displayLength()
system.out.println("Furlongs: " + amountFurlongs);
system.out.println("Miles: " + amountMiles);
Message was edited by:
jaytabbmeister -
My iphone is disabled and I'm traveling. What can I do to reset it to at least use its basic functions (make calls & send / receive sms)?
There is nothing you can do without doing a restore via the recovery mode. Since you have iOS 7, if you activated Find My Phone in Settings > iCloud, you can login to your iCloud account, https://www.icloud.com from a computer, and then do a remote wipe of the iPhone...that will return it to factory condition and all contents will be erased.
Maybe you are looking for
-
Change or delete the docflow link between two existing documents
Hi All, Is there any FM or soulution to change the doc flow link between two documents . For ex .. i have document A and document B , and created a doc flow link from A to B , Now i have to change the succeeding document to C I have tried to modify
-
Need help for the web based project
I am using netbeans 5.5 and Sql server for db.What is the full form for DAO and how is it going to help me in my project.U also talk about uml want ot know about it. and how is it coming to help me.Its a very wast topic i serached.what will be helpfu
-
Tabs no longer remembered after upgrading to Norton 360
My Firefox is set to remember tabs from my last session, but it no longer remembers the setting after installing Norton 360. I've checked the setting several times and have rebooted the computer several times. Hopefully you can help because all I get
-
No startup, blinking folder, VERY hot
Been about 4months since I tried last, but figured I'd give it a shot here. My 2007 iMac won't startup. Only shows blinking folder with question mark, and back of comp gets VERY hot if stays on. Tried doing they keyboard thing with apple key etc.., n
-
OSB 10gR3 Aggregation server in a Cluster configuration
Hello everybody, I am trying to deploy an osb 10gr3 cluster with the following configuration *unix_machine_1 ** AdminServer ** osb_server_1 *unix_machine_2 ** osb_server_2 osb_server_1 & osb_server_2 beloing to an osb_cluster although all servers sta