Flash card 101

No, not like Secure digital or one of those memory sticks.
I am trying to write a flash card program for memorising japanese vocabulary as my first dev project on mac.
My formal programming education ended after a C- of programming 101 in my local college, but I have been programming for a while now.
The program simply shows japanese word/englisgh word (i hope mac os x has no problem having japanese characters) and then once a button is pushed, shows the equivalent of that in the other language.
Is apple script an appropriate language for this purpose?
I haven't even installed xcode yet, but I have a couple questions:
1) how do I do interface with interface builder? this would be my first project with GUI.
2) how do I store the words combinations in a "database" ?
I can image something like this:
wordsdatabase.txt
1:neko:cat
2:inu:dog
and so forth, but i don't know how to implement it.
Thank you for reading and replying!
P.S. Why not just use paper, pencil and scisor? It's more fun this way LOL

Is apple script an appropriate language for this purpose?
Plain vanilla AppleScript could possibly be used, but the app would be somewhat clunky because AS doesn't offer much flexibility with it's GUI user interaction.
On the other hand, if you want to learn and use AppleScript then an _AppleScript Studio_ application might work pretty well. AppleScript Studio is basically AppleScript + extensions for most of the Cocoa GUI elements so it gives you almost as much flexibility with the GUI as a native Cocoa app would. AS Studio apps are also written and built using Xcode (rather than Script Editor).
But if you've done C based programming in the past then there will be a learning curve for AppleScript. But for that matter, there will also be somewhat of a learning curve to start using Obj-C and Cocoa... it depends on what your level of experience is.
1) how do I do interface with interface builder? this would be my first project with GUI.
This is sort of a vague question. When you create a project in Xcode any of the project templates that generate GUI applications will already have one or more basic/generic Interface Builder files included in the project. You just double-click them within Xcode and they'll launch IB for you.
It'll probably make more sense once you install Xcode and start playing with some of the examples. And once you've fiddled with IB a little then you'll probably have some more specific questions.
2) how do I store the words combinations in a "database" ?
I can image something like this:
wordsdatabase.txt
1:neko:cat
2:inu:dog
and so forth, but i don't know how to implement it.
This is something you'll need to decide for your particular case.
A text file like you've indicated could work.
You might also consider using a property list (.plist) file. Cocoa has some built in methods that make loading an entire plist file into an NSDictionary object really easy. In addition, the Xcode Tools installer will install "Property List Editor" which you can use to manually create/edit property list files.
Mac OS X / Cocoa also includes "Core Data" which is a data storage and retrieval API that includes support for both XML or SQLite built in. This may be overkill for your particular situation but you might want to consider looking at it.
If you decide on AppleScript or AS Studio you could potentially use a "list of lists" where each sublist contained a Japanese word and it's English equivalent. Something like this
property wordList : {{"neko", "cat"}, {"inu", "dog"}, {"x", "y"}, ... }
-- iterate thru the words and spit them out to the event log
repeat with wordPair in wordList
set japaneseWord to item 1 of wordPair
set englishWord to item 2 of wordPair
log("Japanese: " & japaneseWord & " English: " & englishWord)
end repeat
-- Generates output like this in the event log
(*Japanese: neko English: cat*)
(*Japanese: inu English: dog*)
(*Japanese: x English: y*)
But the above example has the words contained in a property of the AppleScript in which case you'd have to edit and modify the script whenever you wanted to change your word list. It might be a better idea to keep your words in an external file of some sort so you could update your words without having to modify your script/program.
There are lot's of possibilities.
Steve

Similar Messages

  • Adobe Bridge Auto-Start when Flash Card plugged in

    If this is the wrong forum, my appoligies....
    I am using Adobe Photoshop CS2 with Max OS X 10.4.8 on a PowerBook. When I plug in a flash card reader (with a card) than Adobe Bridge automatically starts and this is not what I want - I just want to open the Finder.
    I have searched through all the preferences I can think of and can't find anything relavent.
    I have had Photoshop Elements and Adobe Lightroom installed at various times but they are all currently uninstalled.
    This is a real aggrivation. Can anyone shed any light on the problem?
    Thanks
    Bill Plunkett

    In that case, try going to your user>library>Application Support>Adobe>bridge folder and move Adobe Bridge Opener Preferences.xml to the trash. Does that help? (Don't empty the trash, because if it doesn't do anything, you might as well put it back again.)
    EDIT meant to say Application Support rather than preferences

  • Runtime error R6025 message after log on to Vista - Flash Card not working

    Hi
    I'm a newbie & would appreciate any advice.
    I am getting a runtime error message R6025 when I log on to Windows Vista.
    When I click out of the box I then get a message saying Toshiba Flash Card not working.
    I cancel that and my laptop is ok except I don't know if the flashcard is working or not because I don't know what it does.
    Sorry if I sound thick
    Thanks
    Neelie

    Hi
    I found this MS knowledge base article:
    +Description of the R6025 run-time error in Visual C++\+
    http://support.microsoft.com/kb/125749
    But I doubt this description would be useful for you or anyone here. It describes this error in Visual C++ and this is programming language.
    However, I think you should simply reinstall the Value Added Package which you could download firstly from the Toshiba European page.
    At first you have to remove the old Value Added Package from the system, then reboot the notebook and follow with new VAP installation.
    Bye

  • So I think there should be an app with flash cards that you can fill in your own info with. I'm studying for a test, and how awesome would it be to have my flash cards on my phone!!! Is there already an app like that?

    I think there should be a flash card app that let's u put in ur own info. I'm studying for a test and I think it would be really cool to have my flash cards in my phone!! Is there an app like that already?

    http://www.appshopper.com/education/flashcards

  • Flash Cards do not work on my Satellite L750

    Hello,
    I own a Toshiba Satellite L750 PSK1WA-03C00R and my flash cards do not work, the function keys work, but my flash cards do not.
    This model does not come with the Flash Card Support Utility, it does however come with the Value Added Package.
    I have uninstalled, CCleaned and reinstalled and repeated mulitple times, trying to get this to work properly. I have also restarted after each of these steps.
    I can't figure the problem out and thought that I'd see what you guys' recommend before I resort to getting Toshiba's support services.
    I also do not want to have to resort to a system restore, but, if I really have to and have no choice, I will when I can.
    I hope someone may be able to help me and do look forward to what support you can offer me.
    Thanks in advance.
    -Chris.

    Hello Pedro,
    I have checked on thses settings and there is the option to allow the mouse to bring up the flash cards, this will bring up the flash cards if I would like to do that, I would however love to use the keys seeing as the mouse option seems to close any games I may have running and take me to desktop and this is not preferrable.
    There is no "Reset Flash Cards" option, I have serched through many files and done many serches for this option and no luck, which is a shame.
    Do you have any other suggestions? I would love to have this work.
    The reason I did the reinstall was to get my brightness keys to work again. Sure, this fixed the problem, but now I have no flash cards. Any suggestions would make me a very, very happy man.
    Thanks in advance.
    -Chris

  • Problem with Plugging in Compact Flash Card

    I am having a problem now when I plug my compact flash card in to download pictures.  When I plug the card in, the AutoPlay window pops up, as it always does.  However, I also get another window that pops up and says "Lightroom must quit because catalog named Lightroom Catalog.lrcat is not writeable and cannot be opened.   This could be caused by incorrect permissions or because another Lightroom application is using the catalog.  You may select a different catalog the next time you run Lightroom  by holding down the control key while Lightroom launches."
    This problem started yesterday.  I had just upgraded to LR 3.5 the day before the problem started.
    Couple of other things:
    1.  Lightroom was not launched at the time I plug in the card and this problem has occurred.   In fact, I just restarted my system a shortwhile ago to test this problem, and it happened again.
    2.  My Lightroom catalog is actually called Lightroom 3 Catalog.lrcat, not Lightroom Catalog.lrcat.
    3.  I have never had my system set up to automatically launch Lightroom when my card is plugged in.
    4.  I have not actually downloaded any pictures from a card for about 2 weeks before I did yesterday, so I cannot say for certain whether or not LR 3.5 is the cause of the problem and perhaps something else is.  But the fact is that I did upgrade to LR 3.5 a few days ago.
    5.  Once I close both the AutoPlay window and the LR dialogue window, I can launch LR 3.5 with no problem and import pictures as I normally do.

    Your description of what you've done and the code you show does not match what the tutorial says to do and what code to use... (there is no stopAndGoTo() function in Flash).
    Right-click the second frame on the upper layer labeled Actions and select Actions. Copy and paste the code below to make our preloader functional.
    if (_root.getBytesTotal() != _root.getBytesLoaded()){
    gotoAndPlay(1);
    bar_mc._xscale=(_root.getBytesLoaded()/_root.getBytesTotal())*100;
    loader_txt.text=Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100)+"%";

  • Satellite A500 - Flash Cards don't work after Windows 7 upgrade

    Hi,
    I have a Satellite A500 PSAM3A-04200E. Recently I did an upgrade from Vista to Win 7. I used my system restore disks to reinstall Vista and then did the upgrade to Windows 7 using the upgrade assistant.
    I find that I can no longer use the Fn key to enable/disable features..
    I have tried downloading the VAP and running it. I have also tried the Start->Toshiba->Utilities->Restart Flash Cards. Neither of these have worked even after a restart...
    Can anyone give me some pointers on what to do next?
    Thanks

    Hi buddy,
    If you have already reinstalled Toshiba Value Added Package, you should also (re)install Flash Cards Support Utility. This tool controls the FN keys and is necessary to get them working.
    You can download it on official Toshiba website:
    www.mytoshiba.com.au
    Check this!!!

  • How can I transfer contacts from a flash card to my iPhone 5s?

    How can I transfer contacts from a flash card to my iPhone 5s?

    I figured it out! I copied the VCF files to my Contacts app on my iMac and all my contacts refreshed automatically via the Apple iCloud! Hope this helps some people out there! Good Luck!

  • IMac error message with 32Gb compact flash card from Nikon D4

    Hi
    I have a iMac 2.8Gig core 2 duo running 10.7.4 - I get a error message (the disk inserted is not readable by this computer) when using 32gb compact flash cards from my Nikon D4, have tried bith Sandisk and Lexar cards same error message. However both cards work fine on my MacBook Pro and a Windows machine. If I format the 32Gig card in my Nikon D300 it is recognised on the iMac. So it appears to be the way the Nikon D4 formats the card that the iMac dosen't like, however as I said it's fine in the MacBook Pro.
    Any help or suggestions would be greatly appreciated.
    rgs
    Colin

    On both Fomats, use Disk Utility on both the Volume & Partition & the blue Info icon to see what the differences are.

  • NB305 - FN key no longer working with Flash Cards

    I acquired my NB305 last week, and the FN key was working such that when you held it down the Flash Card appeared at the top of my screen.   However, that association has since ceased.   The FN does work for other purposes, and I turned on the feature with the Flash Cards to allow the mouse cursor to activate them.   so both the key itself and the Flash Cards are working, but not together.
    I have searched high and low and I can find no way to reassociate the key and the Flash Cards.   This forum is my last hope for solving this riddle.  I did search the board, but I could find no reference to this problem.
    Any assistance you may be able to provide is very much appreciated,
    -Neil

    start menu> all programs> toshiba> utitilies>settings for flash cards. when the window comes up check the box for allow the mouse to bring up the cards. also make sure the box next to keep the cards on top of other windows so they alway show up where you can see them if you have other programs open. when you have problems bringing them up with the FN key try the same thing as before but instead of settings for flash cards select reset flash cards
    -civicman4-
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Post all info about your laptop and version of windows. We are working on it but still do not have the powers to read your mind.

  • Copying file from a Compact Flash Card or Epson Picture Viewer issues

    I am a photographer and have been experiencing issues when trying to copy or move files from my compact flash cards or my viewer HD device. Both my Sandisk reader and the epson connect to my iMac through USB (rear ports) and during the copy process, I get messages that one of the files are in use, and the rest of the copy is aborted. Since the copy process doesn't work in a numerical or filename fashion, I have to look through each file that has been copied and try to identify which files were missed. The weird thing is that if I try to copy the file that was mentioned in use, it works fine
    I am copying to a USB External drive, connected to my Airport Extreme. I've encountered the same things when the HD was connected directly to the iMac.
    I am getting very frustrated with this process, and am looking for insight on how to make this go away, or at the very least, is there an application that will copy/move and verify the files before exiting? I can't help but think that I may have missed files here and there, and those files could be now lost memories.
    Any help would be appreciated

    They'll record either while simutaniously recording to tape. I believe the HDV is in a .M2t format but I'm not sure about the DV file format. As for quality, your guess is as good as mine, I haven't had the chance to play with one yet.
    Mike
    M2 Digital Post Inc.
    San Diego, CA.

  • Why does not USB flash card work?

    MacBook Pro 13' (late 2011)
    OS X Yosemite 10.10
    My USB hub does not see any flash card, but it works when I use my iPhone.
    What have I done: I tried to open my flash card. Then, I cleaned my flash card with Disk Utility and tried to connect to Mac again. I also tried to use different flash cards. But there was no effect.

    Thank you for your reply.
    The "does not work" means that the motor doesn't move with servo type.
    In MAX, there is no error when a target position is less than 999 in 1-D Interactive, but doesn't move. When the target position is more than 1000 and I click "Apply" and "Start", error ramps of "Motor off" and "Following error occurred" are red. And the motor doesn't move.
    I thought that firstly signals of encorder have been wrong because the motor have not moved with stepper mode of closed-loop and feedback of encorder.
    So I would connect correctly wiring of encorders, but the motor doesn't move.
    Wiring of all is "STEP", "DIR", "AO", "ENC A, B and Index bar" respectively. In MAX, type is servo mode, feedback is encorder, kinds of limit switch are not used.
    I supply it if you need the other setup of wiring or information.
    Regards,
    Megumi

  • Satellite L755: Win8.1 update - Flash Cards message: Win 8 test version

    Hi;
    After I update to windows 8.1 from win8 mc I am getting message after my laptop is starting from (Toshiba Flash Card) like the picture bellow,
    Any idea how to fix it?
    I remove VAP then system driver and then functions key utility and re installing it - no change made?
    Toshiba Satellite L755
    Windows 8.1 64bit
    [http://s9.postimg.org/46hbl5hm7/Untitled.jpg]

    For solve this problem i just remove PC health monitor and download it for windows 8.1 Satellite P855 (for example).
    http://www.toshiba.ru/innovation/download_drivers_bios.jsp?service=EN
    After installation and reboot message window does not appear.
    P.S. I have the same notebook model and OS version as you.

  • I have Photoshop Eleent 12 and use a Windows PC.  I hae been using a Canon EOS 50D for several years, which uses a Compact Flash Card.  I have always downloaded pictures by using a card reader wich I connect to my computer. I Go to the Organizer, click on

    I have Photoshop Eleent 12 and use a Windows PC.  I hae been using a Canon EOS 50D for several years, which uses a Compact Flash Card.  I have always downloaded pictures by using a card reader wich I connect to my computer. I Go to the Organizer, click on "Import" and select "From camera or card reader".  Once on the Photo Downloader, I select the pictures, chose the folder and click on "Get Media" and all the photos get downloaded. Today I folled the same procedure as always, but ZI'm gettig an error message that reads"Import Failed" followed by another message that reads "Nothing was imported. The file(s) or folder(s) selected to import did not contain any supported file types, or the files are already in this Catalog."  I'm puzzled by this message and don't know what to do o get my photos.  Any suggestions?

    The organizer doesn't care where you send your photos when you download them via the downloader or where they happen to be when you first bring them in if you use the Get Photos command, but once your pics are in the Organizer, you *must* move them from within organizer or it can't find them. You don't have to use My Pictures at all if you don't want to, but regardless of the folder where you put your photos, if you want them someplace else, you use organizer to do it.

  • My Macbook Pro won't read my Compact Flash card

    Here’s the problem.
    Mavericks won’t acknowledge the existence of my Compact Flash card when presented in a card reader (I have tried two readers). It is a card I have been using with Lion on my Macbook Pro for some time quite happily.
    There is nothing wrong with the card; it works just fine in our Windows machine and in my camera.
    My Compact Flash card is a Kingston 4Gb card. It was formatted in the camera.
    The camera was bought approx 2003. Its a digital Pentax Optio 33GS (top of the range at the time shooting 3.2 megapixels!).
    On my Macbook Pro 15” (bought new approx 2010) the card does not appear in Finder but does appear in Disk Utility.
    The information for the main entry on the LHS in Disk Utility is displayed as follows:
    Disk Description: 4Gb Generic Storage Device Media
    Write status: Read/write
    The sub entry which appears as disk1s1 on the LHS is:
    Mount point: Not mounted
    Format MS-DOS (FAT16)
    I  attempted to erase the Card using Disk Utility; I selected the main entry on the LHS and I chose the format MS-DOS (FAT). This returned a Disk Erase Failed msg “Wiping volume data to prevent future accidental probing failed.”
    I then tried again, this time selecting Windows NT File system (Tuxera NTFS) as I have Tuxera installed. This did not work either; it failed with the same error msg.
    OK so then I tried Mac OS Extended (Journaled) but this failed as above also.
    I am not quite sure why, but when I reinserted my card into my camera, my camera could not read the card so I had to reformat the card within the camera.
    Oh yes, I also tried rebooting my Macbook with the card inserted but this made no difference.
    I have run our of ideas. All help gratefully received.
    Thank you. Carol
    PS ... apologies to anyone who saw my previous post in which I referred to my card as an SD card when in fact it is a Compact Flash card
    MacBook Pro, OS X Mavericks (10.9) 
    I have this question too (0 

    Okay, I am making progress here now.
    Using the link in my message above timestamped Dec 13, 2013 4:24 AM, I filed a tech support request describing the problem. Because they asked for details to confirm that the problem was with their product, I copied and pasted pretty much verbatim the text from my message above.   
    Around noon, same day, I got a message back from technical support saying they were sorry for the problem and would provide me with a replacement unit. Two hours later, I got a message from their RMA department saying that because the product has a two year warranty, they needed a copy of my receipt. I located a copy of my receipt for the purchase from Amazon on September 10, 2012 and forwarded that to them.
    At this point, I am optimistic that it's going to work out okay. So far, I am very impressed with the responsiveness of Kingston's technical support and customer service departments.
    If I actually do receive a working replacement, I will post an update here.

Maybe you are looking for

  • How to create a dataplugin for DataFinder using LabVIEW

    We want to use LabVIEW to create a dataplugin that will be used by DataFinder (My DataFinder). We have found on the NI web site the LabVIEW DataPlugin SDK - , a SDK that allow us to create a dataplugin. The SDK is for LabVIEW 8.6. The dataplugin exam

  • Issue with sys_refcursor  in oracle  10.2.0.4.0

    hi, java is front end application and they want result set to be returned from oracle plsql, for simplicity i am writing code something like below. create or replace function fun () retrun sys_refcursor is tablename_cur sys_Refcursor; begin open tabl

  • How do i sync my new iphone on my mac?

    I just recently bought an Iphone 4s, however i can not get it to sync or even register on my computer. I have a mac, it says all the software is up to date, however when i look at the details it does not state the latest one. So i visited the Itunes

  • Why are my iPhone photos not appearing in photo stream?

    When I first downloaded iCloud photos taken on my iphone automatically apeared in photo stream on my macbook.  This is not happening anymore.  I have automatic photo steam enabled in settings and iphoto preferences.

  • Full screen mode and Screen saver Photo viewing

    The problem I have is my images vary in size, due to photos being taken on different cameras, with different settings, or photos/negatives that have been scanned. When viewed in iphoto some of the photos are smaller than others in full screen mode (o