Copy iPhone file from macOS Finder using AppleScript or JAX - automation

My setup
macOS 10.15.7
The recent macOS can access iOS app documents on a physically connected device directly from Finder. But this process seems to need human intervention.
I wonder if I could retrieve my iOS app's file from Finder programmatically using AppleScript or JAX. So far I haven't found a way
Thanks!

Solved it myself.
The solution is not exactly as my title but it does the job: I can now access app documents from macOS programmatically without modifying my app code.
Short answer
I can use ifuse as part of libimobiledevice.
Details
Here are the steps taken.
Install macFUSE , which
allows you to extend macOS's native file handling capabilities via
third-party file systems.
    mine is 4.0.5.
Install ifuse and ideviceinstaller from Homebrew.
brew install ifuse
    mine is 1.1.4.
brew install ideviceinstaller
    mine is 1.1.1.
Find your app's App ID using ideviceinstaller.
ideviceinstaller -l | grep "my_keyword"
    This gives your app's ID and name. Assume tat the id was com.my.app
Mount the Documents folder, e.g., onto my desktop.
mkdir -p "~/Desktop/myappdoc"
ifuse --documents com.my.app "~/Desktop/myappdoc"
Now my app folder is mounted at the specified location.
To unmount so that next time around my script can still mount the drive at the same location,
umount "~/Desktop/myappfoc"

Related

Accessing files without installing Dropbox from Linux OS installed parellelly in Windows7

I have installed Dropbox in Windows 7. Also, installed Ubuntu Linux 14.04 in parallel. Through online login to Dropbox account allows access to files in Dropbox. However, to work with the files in Dropbox I have to install Dropbox in Linux also. This require additional space in the same PC. So, is it possible to access and work with files in Dropbox#Windows7 without installing Dropbox in Ubuntu (which is installed in the same PC parelelly)?.
You can access windows disks in linux, you just need to map it correctly. Then you can do whatever you want with files. But dropbox magic will not work until you load windows again.
Only when you bootup from windows again, since it is dropbox app that does syncing. What you may do is to deploy dropbox on both windows and linux, but point them to the same data folder. Still there could be some problems with text files, as windows and linux are not treating line endings the same way. So if a file was synchronized in windows, it will have windows endings, and vice-versa.
Maybe you could configure a remote filesystem on a USB-Stick so both your systems can access on it and you have a directory where dropbox stores the files.
Look here: https://www.dropboxforum.com/t5/Dropbox/Idea-Portable-Dropbox-folder-on-flash-drive/idi-p/122804

Installing chrome OS on an iMac

http://zzsethzz.blogspot.de/2013/02/install-chromium-upgrade-it-to-chrome.html
According this tutorial, I should remove all HDDs I do not want to install chromium OS to during install. I wanted to try this guide on my imac using an external SSD for chromeos. Obviously, removing the HDD isn't an option. Will the chromiumOS installer format my mac drive too, if I don't remove it?
AS the writer of that tutorial I can hopefully help you. When you install Chromium OS to begin with you can specify where to install to if you know your unix commands well enough. and then from there you can update to Chrome OS once you have your external working for you.
To find out what your hard drive is when connected, open a terminal (you may need to use a developer terminal) and use the command "fdisk -l" This will list your hard drives. for example /dev/sda1 etc...
Your install command would be "Install /Dev/sda1" but replace the dev part with whatever your hard drive was listed as. If you need further help email me at admin#xiaorishu.co.uk

Sync chroot folder with Google Drive or Dropbox in Chrome OS

I have crouton running on a chromebook 11 with ubuntu precise in it. I am looking for a way to sync files in some folders in the ubuntu chroot with Google Drive. I am thinking I can create a link between the mounted chroot partition and a sync'ed folder in the Chrome OS, but I can't find where the synced Google Drive folder is in Chrome OS.
Could anyone please help?
Bottom line I want to sync files I create in the chroot to an online service, Google Drive or Dropbox, whatever works.
Thank you in advance
SUMMARY
The best way to sync files (code, in my case) is to use git and bitbucket/github. Install git in the chroot, and sync the code into the Downloads folder so it can be accessed from both ChromeOS and the chroot (and compiled and ran locally on both computers). I stored all other files in Google Drive so they could be accessed from ChromeOS, other computers, and the chroot.
Here are the options I looked into, but did not end up using
Accessing the Google Drive cache directly on the chromebook
Google drive in the chrome os stores the file data in
/home/chronos/user/GCache/v1/files
However, it does not name the files how they are named in google drive (it names them by some uuid, and stores meta in another folder).
3rd party tools to mount Google Drive folder in linux
https://github.com/dsoprea/GDriveFS
I was able to get GDriveFS working, but it was slow and chmod does not work in its file system. The permission are all static at 666, so programs will not execute.
https://github.com/astrada/google-drive-ocamlfuse/
I was not able to get ocamlfuse working on an arm Chromebook.
https://github.com/Grive/grive
I was able to get Grive working, but it has some problems and hasn't been updated in over a year. Would not recommend if there is a chance of merge conflicts.

Debugging Adobe AIR apps on Kindle Fire

Possible?
I think to do this I need to upgrade the AIR runtime on the Fire to 3, but the version in the app store won't install. I can't create an AIR apk that is both captive runtime and debug that I know of, so the debug version of the app has to run on the AIR runtime installed. Since the Fire comes with 2.7, 3.x apps won't run in debug mode.
Has anyone managed to get AIR 3 running on a Fire without using captive runtime?
To update AIR on your KF you have to get root privileges. Also keep in mind that android build on KF doesn't have any copy command (it cut off). So the best way I found is to flash your KF with modified (pre-rooted) stock version and then install new air.
Get pre-rooted stock version (I took it here). IMPORTANT: it installs via TWRP, google how to install TWRP on KF.
Put downloaded .zip and air_runtime.apk (latest AIR version) in the root of KF.
Reboot in Recovery mode (TWRP should load)
Flash this version.
On your PC open cmd and run "adb shell" (make sure you see your device in list when run "adb devices" otherwise check drivers).
Run "su" (if you downloaded secure version).
In shell go to sdcard ("ls" to get list of files/folders and "cd folder_name" to get into) and run "install air_runtime.apk /system/app/air_runtime.apk" (I think you can just run "install /sdcard/folder_with_air/air_runtime.apk /system/app/air_runtime.apk").
(7a. If it tells you that can't install because of file already exist, run the following two commands: "mount -o remount rw /system" (mount 'system' with read/write rights) and "mv /system/app/air_runtime.apk /system/app/air_runtime.bak" (rename air_runtime.apk into air_runtime.bak). Then repeat step 7.)
In KF just run (install) air_runtime.apk (use any file explorer, e.g. download ES File Explorer from Amazon).
Check AIR version in Applications.
That's all. Looks a bit complex, but in real it takes about 4-5 mins for me to update AIR (BUT I have TWRP already installed).
Hope it helps.
UPD. After your Kindle updates itself (version 6.3.1 currently the latest) you'll lose you SU privileges. AIR also will be rolled back to 2.7. You can prevent KF auto-updates (search on xda how to do it) or flash actual pre-rooted version (it gives you several months without problems).

Manually upload or install BREW files on the phone

I have quite rare Kyocera phone as a gift. A limited number of that phones was special developed for my local mobile operator for testing-only purposes back in 2006. It is based on MSM6500 and doesn't have any webbrowser BREW applications in it. I wonder if I could upload any locally compiled BREW files in it i.e. example .mif/.bar files from BREW SDK 2.1? I have digged the file system using QPST EFS Explorer. Can I copy *.bar files directly to the phone? How to install brew application to the local phone, if it is possible?
http://hacktherazr.com/qa/how-do-i-side-load-brew-app-verizon-v3m discusses the question on a verizon Brew equipped phone.