New version of ASObj-C database version a14

Jim,

The required file placement for the files inside the top level folder before the database will work is:

FileMaker Pro folder
	ASObj-C Database.fmpur
	Extensions
		Dictionaries
			deutsalt.mpr
			deutsch.mpr
			deutschw.mpr
			espanol.mpr
			francais.mpr
			italiano.mpr
			ndlands.mpr
			porbras.mpr
			portugs.mpr
			svenska.mpr
			ukenglsh.mpr
			usenglsh.mpr
			usengmed.mpr
			User.upr
	FileMaker Pro runtime.app
	FMP Acknowledgements.pdf

The top level folder name can vary buy everything inside that folder has to be in the same place. The file “FMP Acknowledgements.pdf” does not have to be in the folder before it will work, but FileMarker Inc requires the file to be in the folder before I can distribute it.

The “FileMaker Pro runtime.app” contains a striped down version of FileMaker so people can run the database I created but they can’t create anything new in the database or create any new databases. Technically you probably only need “User.upr” and “usenglsh.mpr” in the "Dictionaries"folder but I have never tried it to see if it works and there are people from other countries that look at the database.

Bill

Thanks, but you left out an important file:
ASObj-C Database.fmpur

where should it go?

May I suggest that in the zip file for each update, that you include an “install.txt” file with the proper instructions to install/setup the DB.

I fixed my previous post where I listed what files go where.

Sounds like a good idea.

Bill

FYI, his name is Takaaki Naganoya – he may be familiar to those on Apple’s AppleScript mailing list. I suggested he pop in here after I saw Bill’s commendation (which I second).

Bill, I’m about ready to give up. I’m still getting this error when I double-click on the R/T app OR the Database:

Here’s my setup in the standard Applications folder:

Now that I think about it you probably haven’t seen the previous instructions on how use the files. When I posted that information you weren’t interested in the database.

Drag the “ASObj-C Database.fmpur” file on top of the “FileMaker Pro runtime.app” and let go. Since the new OS came out the FileMaker runtime get an error if you double click on the database file. FileMaker isn’t that interested in fixing a problem with the previous OS so we’re stuck with that.

The first time you run something with “FileMaker Pro runtime.app” you also have to hold down the option key while doing the procedure described in the previous paragraph. The tells the OS that the application you’re opening is ok to open. After doing this once you don’t have to do that again as long as you’re using the “FileMaker Pro runtime.app” you were when you had the option key down. Your system will remember the app is ok. This happens because I didn’t want to pay $99 to apple for code signing and the Mac OSX will show an error without doing this.

That should fix your problem.

Once you get to the dialog click guest account and click ok.

That should take you into the database.

Bill

Here is a TextEdit document I wrote to help people with installing “ASObj-C Database” It is a TextEdit document so it should run on everyone’s Mac. If this proves to be a problem I can convert it to a pdf.

Bill

install.rtfd.zip (109.0 KB)

Since I don’t see any link to download the newest version of the database on this web page I’ll post it here. This is version A16.

Bill

Nope, still getting the same error.

Note that when I unzip the runtime app, it appears in all lower case, unlike what you show and what Dropbox shows. I have no idea what this means.

Sorry, but that’s it for me. I don’t have the time to continue to debug the installation process of your database. You may want to test the installation process on another Mac where FMP is not installed.

I’m running macOS 10.11.6.

Jim,

I’m creating a new link for the application. The app link has been used many time and worked so I didn’t think it could be a problem. If this doesn’t do it I don’t know what will. These are new links to all of the stuff.

FileMaker Pro files minus database file.zip

ASObj-C Database A16.fmpur.zip

install.rtfd.zip

Bill

Jim,

I downloaded everything all over again from the site and it works without a problem. I can’t get it to fail no matter how hard I try. I have to assume there is something on your system that is not compatible with FileMaker Pro. I’ll have to think about this and see what I can do.

Since you don’t want to trouble shoot the installation it appears that using FileMaker on your Mac is not a solution that works for you. I might be able to come up with something not as good but still does something.

Bill

Shane or Mark,

Is there some way to place the most recent version of the ASObj-C Database in Discourse such that everyone could download the newest version using the same link even when new versions come up. I’ve now got 16 sets of links with different amounts of information in them and with think fixed in some version but not others. The number of time something is linked by a reader is about 3 to 5 times for each thing that is linked. I’m just leaving a trail of out of date link behind me. Some very out of date. It’s hard to really getting anything going when every version means starting over with a new set of people.

Shane is there a way I could just get a place on your site where someone can click a link. Just that much would help a lot. I don’t need a page, just a place to put a link.

Bill

Sure. Give me a chance to sort something out…

Jim,

I did a quicky print to PDF on the samples in the in the database. I can probably clean and shorten it a bit but I wanted to see if you were interested in this as a pdf. You can search it for examples and read to see how things work. If this is something you are interested I can do this for the 3 types of samples: beginning, Intermediate and advanced. Most of the samples for now in the Intermediate level. I included the pdf file in this post. Let me know you are interested in my doing anything else with it. Other stuff like explanatory notes, in every class item and class, … get more complex. Probably the extra info stuff is doable. But I can’t commit a least month and most likely a lot more to making all the info available without a database in any way that is reasonably accessible. Preparing data to export to another database is hard enough but getting it to work in a different database is always a lot of work and I wouldn’t want to support a different database.

Without the database pdfs are about the best I can do for you. But I think they would be helpful.

I just noticed the name of the archive I just uploaded is named “Teaching company courses v1.2.pdf.zip” I have automatic stuff set up and I do databases for the “Teaching company.” But I did upload the correct pdf. It’s just named wrong.

Bill

Teaching company courses v1.2.pdf.zip (5.3 MB)

Bill,

OK, these download links worked (very different from before). Dropbox actually show the file as a ZIP file, instead of the contents of the ZIP (as it did before). So I think your prior link to “FileMaker Pro files minus database file.zip” was bad.

Fortunately, I was able to open the DB file using the FileMaker Pro runtime.app.

My immediate reactions are:

  1. Almost all text is too small, hard to read. Can I make it larger?
  2. What do I do now? How do I use the DB?

May I suggest that you make a video (or maybe a series of videos), that show the various ways to use the ASObjC DB?

Here is a screenshot that shows the very small text:

Jim,

I created a new ASObj-C version A16.1. This version just has only one change so I made it version 16.1. I added a third size to the database.

When looking at the “class items” window, there is a popup menu in the top left corner of the window. The image immediately following this paragraph shows a picture of this popup. It has the text “window size” below it. This popup allows the screen arrangement and text size size to be changed.

Originally there was the “2560 X 1440” size which is the screen for a 27 inch iMac. Then I added a “1280 X 735” for a laptop sized screen. I just added a new size called “2560 X 1440 (big text).” I changed the font size from 10 point size to 14 point. If you select “2560 X 1440 (big text)” you will get bigger text on the window. The image below show what the popup should look like after it is clicked.

The actual database file in the "ASObj-C Database A16.1.fmpur is very small so I just uploaded it to the discourse site. Try this bigger text size out and let me know how it works out.

Bill

ASObj-C Database A16.1.fmpur.zip (691.1 KB)

I have to write 4 things here.

(1) Shane Stanley’s work is the mother (father?) of my wokrs. His books are great and thoughtful. I read his post in AppleScript-users ML around Cocoa themes.

(2) I’ve been taken Apple’s 108 Mailing Lists for over 10 years (including Cocoa-Dev ML). And classify every MLs by AppleScript robot automatically.

(3) My e-books (PDF version) permits the copying text or the printing. So, you can translate them by Google or print it out. Only the modification action is not allowed.

(4) I have a great respect with Mark Alldritt, Shane Stanley & Bill Cheeseman. Mark is a man of gentle. If his words sounds sharp, my respect is not shaken or disappeared.

Takaaki Naganoya

Piyomaru,

I started in AppleScript from the beginning when it was released back when Finder had its dictionary outside of Finder. At first I though it was a very odd language. But now it seem like the most natural language I know. I remember Shane’s name coming up here and there, and before I knew it was all over the place. Mark changed the way Applescript was done. All the serious scripters used Script Debugger. I definitely remember Bill Cheeseman.

But I also remember the first time I saw your site. It was one of the most amazing things I had seen with AppleScript. After the first day of checking it out I just stared at the Mac screen for a long time in amazement. Shane has done so much to teach others, Mark has provided amazing tool for scripters, but you blog has collected so much ASObj-C information that it is one the most amazing things I’ve come across in AppleScript. Thank you for all the hard work you put into that. And thanks to Shane, Mark and all the early AppleScript pioneers :slight_smile:

Bill

To follow up, I suspect today’s post on status bar items will be of interest to quite a few people.

One hint about using Google translate – if you want to copy the code, do it in the original Japanese page, clicking on the Click Here to Open This Script link. Google translate tends to change the case of words in the code, which can play havoc with ASObjC.

This is what happened to me – very frustrating.

So, I suggest you go straight to this, which worked:

Yes, this is interesting.

To state it simply, this script installs a new menu in the Apple Status Menu bar at the top of the screen.

The script provides a stub where you can hook in your on responses to a menu selection.

###AppleScript To Install New Menu in Apple Menu Bar
(includes Google translation of page prior to code)
I made one mod at the bottom to add menu title to display dialog.

use AppleScript version "2.4"
use scripting additions
(*
-- Created 2017-03-03 by Takaaki Naganoya
-- 2017 Piyomaru Software
-- http://piyocast.com/as/archives/4502

Status bar description 2

An AppleScript that creates a status bar item on the macOS menu bar.

I created a status bar from AppleScript and confirmed that I can create and register menus, but since it is troublesome to run with applet, I tried to be able to execute it as it is in Script Editor.

Stat10.png

There was a problem with normal AppleScript not being able to prepare means to erase the status bar itself rather than having problems with execution / calling.

So I prepared a "Quit" item in the menu of the status bar I made and tried to delete the status bar item.

Although it is possible to designate Command Key etc. in the menu itself, it seems that it is not possible to obtain keyboard shortcuts with the status bar item (other tools are like that), it seems like that.
*)
use framework "Foundation"
use framework "AppKit"

property aStatusItem : missing value

on run
  init() of me
end run

on init()
  set aList to {"Piyomaru", "Software", "", "Takaaki", "Naganoya", "", "Quit"}
  
  set aStatusItem to current application's NSStatusBar's systemStatusBar()'s statusItemWithLength:(current application's NSVariableStatusItemLength)
  
  aStatusItem's setTitle:"🚗"
  aStatusItem's setHighlightMode:true
  aStatusItem's setMenu:(createMenu(aList) of me)
end init


on createMenu(aList)
  set aMenu to current application's NSMenu's alloc()'s init()
  set aCount to 1
  
  repeat with i in aList
    set j to contents of i
    if j is not equal to "" then
      set aMenuItem to (current application's NSMenuItem's alloc()'s initWithTitle:j action:"actionHandler:" keyEquivalent:"")
    else
      set aMenuItem to (current application's NSMenuItem's separatorItem())
    end if
    (aMenuItem's setTarget:me)
    (aMenuItem's setTag:aCount)
    (aMenu's addItem:aMenuItem)
    
    if j is not equal to "" then
      set aCount to aCount + 1
    end if
  end repeat
  
  return aMenu
end createMenu


on actionHandler:sender
  set aTag to tag of sender as integer
  set aTitle to title of sender as string
  
  if aTitle is not equal to "Quit" then
    ## @JMichaelTX Mod:  ADD "with title"
    display dialog aTag as string with title aTitle
  else
    current application's NSStatusBar's systemStatusBar()'s removeStatusItem:aStatusItem
  end if
end actionHandler: