begreen Posted September 13, 2004 Posted September 13, 2004 I'm trying to set up a cross-platform script that will find and open a folder on the network. The network folders are grouped under primary folders named "10000s", "20000s" etc. The final folders are numbered corelating to the record number. For example: Server->20000s->29001. So far I've got it working on Windows, but I'm not making as good progress on the Mac. On Windows I have a script step using "Send Event" to Explorer to open document using the calculation: "explorer serverfolder_afolder_b" & Floor (Database::RecNo /1000) & "s" & Database::RecNo Most of the calc just determines which major folder it's in, then it has explorer look for the final folder that matches the record number. How does one do this on the Mac using the Finder? I haven't had much luck yet with Send Event. Is this better accomplished using applescript?
begreen Posted September 14, 2004 Author Posted September 14, 2004 Ah, I figured it out. No need to define the finder in the calc on the Mac, just tell the event that it's the Finder application (buried in the Library core.app folder). I also had the path structure wrong. It wanted server:folder_a:folder_b: . Now working great on both platforms.
Recommended Posts
This topic is 7373 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now