[script draft] How can I transfer photos from my IPhone to my desktop computer?

Ralf Mardorf silver.bullet at zoho.com
Sat Aug 17 23:47:30 UTC 2019


Hi,

yesterday I wrote a primitive script. The good news, there are no issues
with getting access to the photos when using the script.

Manually getting access to the documents of a single app is no issue at
all, but if a script just automatically checks all available listed
apps, it fails due to a "house_arrest" issue. Disconnecting USB,
restarting the computer etc. is not required, manually mounting a single
app still works after this failure [1]. The note how to "get rid of
issues" is quasi null and void.

Both, the iPad 2 and the iPad Pro suffer from the same issue. Btw. the
script allows to connect both iPads, resp. several iDevices at the same
time.

The script is attached. I just noticed that in line 89 there should be
the "2>/dev/null" removed. OTOH it's not really needed to remove it.

Regards,
Ralf

[rocketmouse at archlinux ~]$ mkdir -p Desktop/ipad && ifuse -u12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documentscom.steinberg.cubasis Desktop/ipad 
[rocketmouse at archlinux ~]$ umount Desktop/ipad
[rocketmouse at archlinux ~]$ mkdir -p Desktop/ipad && ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documentscom.steinberg.cubasis Desktop/ipad 
[rocketmouse at archlinux ~]$ umount Desktop/ipad && rmdir Desktop/ipad/ 
[rocketmouse at archlinux ~]$ IMNT_VE=1 IMNT_FM=spacefm imnt/imnt 

iMount Version 2019-08-17-1
Ralf Mardorf <silver.bullet at zoho.com>

Usage: imnt


Sometimes you need to get rid of issues by
                      =================
disconnecting USB,
shutting down the iDevice,
turning it on again,
connecting USB,
eventually unlocking the iDevice
and confirming that you trust the computer.

Sometimes you also need to restart the Linux computer.


IMNT_SU=sudo # sudo, gksudo etc.
IMNT_VE=1    # verbose 0 or 1
IMNT_FM=spacefm     # file manager

Push 'Enter' to continue.
========================= 

Push 'Enter' to confirm.  

usbmuxd: active (running) since Sun 2019-08-18 00:54:30 CEST; 13min ago


Please wait.

CPUArchitecture:armv7f
DeviceClass:iPad
ModelNumber:MC770
iOS:9.3.5

UniqueDeviceID:12c6f0748b9d3344303a0b5d775136ac4d4a7341

Please wait.

ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents ppg.2048 /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/2048_--_ppg.2048
ERROR: InstallationLookupFailed
The App 'ppg.2048' is either not present on the device, or the 'UIFileSharingEnabled' key is not set in its Info.plist. Starting with iOS 8.3 this key is mandatory to allow access to an app's Documents folder.

ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents com.jhx.2048undo /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/2048undo_--_com.jhx.2048undo
ERROR: InstallationLookupFailed
The App 'com.jhx.2048undo' is either not present on the device, or the 'UIFileSharingEnabled' key is not set in its Info.plist. Starting with iOS 8.3 this key is mandatory to allow access to an app's Documents folder.

ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents org.43z.8bitDrum /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/8bitDrum_--_org.43z.8bitDrum
ERROR: InstallationLookupFailed
The App 'org.43z.8bitDrum' is either not present on the device, or the 'UIFileSharingEnabled' key is not set in its Info.plist. Starting with iOS 8.3 this key is mandatory to allow access to an app's Documents folder.

ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents com.future-audio.AD-480-pro /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/AD-480-pro_--_com.future-audio.AD-480-pro

ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents com.mradevelopment.A-Delay /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/A-Delay_--_com.mradevelopment.A-Delay

ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents com.adobe.Adobe-Reader /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/Adobe-Reader_--_com.adobe.Adobe-Reader

ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents com.maj9.AllGuitarChords /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/AllGuitarChords_--_com.maj9.AllGuitarChords
ERROR: InstallationLookupFailed
The App 'com.maj9.AllGuitarChords' is either not present on the device, or the 'UIFileSharingEnabled' key is not set in its Info.plist. Starting with iOS 8.3 this key is mandatory to allow access to an app's Documents folder.

ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents com.agilepartners.ampkit /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/ampkit_--_com.agilepartners.ampkit
ERROR: InstallationLookupFailed
The App 'com.agilepartners.ampkit' is either not present on the device, or the 'UIFileSharingEnabled' key is not set in its Info.plist. Starting with iOS 8.3 this key is mandatory to allow access to an app's Documents folder.

ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents com.moogmusic.animoog /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/animoog_--_com.moogmusic.animoog

[snip]

ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents com.coreengineapps.coresynthhd /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/coresynthhd_--_com.coreengineapps.coresynthhd
Failed to start AFC service 'com.apple.mobile.house_arrest' on the device.

ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documents com.steinberg.cubasis /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/cubasis_--_com.steinberg.cubasis
Failed to start AFC service 'com.apple.mobile.house_arrest' on the device.

[snip]

ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 /tmp/imnt/12c6f0748b9d3344303a0b5d775136ac4d4a7341/0000_--_APPLE_PICS_N_VIDS


Push 'Enter' to unmount.
========================

[snip]

[rocketmouse at archlinux ~]$ mkdir -p Desktop/ipad && ifuse -u 12c6f0748b9d3344303a0b5d775136ac4d4a7341 --documentscom.steinberg.cubasis Desktop/ipad 
[rocketmouse at archlinux ~]$ ls Desktop/ipad/
Audio  Effects  Instruments  Midi  Mixdown  Projects  Trash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imnt
Type: application/x-shellscript
Size: 4171 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20190818/6ed928c6/attachment.bin>


More information about the ubuntu-users mailing list